Skip to content

Commit 9aa06ad

Browse files
committed
feat: pgt settings
1 parent 0c12ee5 commit 9aa06ad

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

plugins/lsp.lua

+7-9
Original file line numberDiff line numberDiff line change
@@ -165,21 +165,19 @@ return function()
165165
postgres_lsp = {
166166
capabilities = {
167167
workspace = {
168-
-- I don't think pgt supports configuration through this notification.
169168
didChangeConfiguration = { dynamicRegistration = true },
170169
},
171170
},
172171
cmd = { "postgrestools", "lsp-proxy" },
173172
filetypes = { "sql" },
174173
single_file_support = true,
175-
-- I also don't think it supports InitializeParams yet.
176-
-- settings = {
177-
-- postgres_lsp = {
178-
-- db = {
179-
-- database = "dev",
180-
-- },
181-
-- },
182-
-- },
174+
settings = {
175+
db = {
176+
username = vim.env.USER,
177+
password = vim.env.USER,
178+
database = "dev",
179+
},
180+
},
183181
},
184182
prismals = {
185183
capabilities = {

0 commit comments

Comments
 (0)