diff options
Diffstat (limited to 'lua/lspconfig/configs/postgres_lsp.lua')
| -rw-r--r-- | lua/lspconfig/configs/postgres_lsp.lua | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/lua/lspconfig/configs/postgres_lsp.lua b/lua/lspconfig/configs/postgres_lsp.lua index 0c41307b..5ed4ddd5 100644 --- a/lua/lspconfig/configs/postgres_lsp.lua +++ b/lua/lspconfig/configs/postgres_lsp.lua @@ -1,17 +1,17 @@ -local util = require 'lspconfig.util' - return { default_config = { - cmd = { 'postgres_lsp', 'lsp-proxy' }, - filetypes = { 'sql' }, - root_dir = util.root_pattern 'root-file.txt', - single_file_support = true, + cmd = { 'postgrestools', 'lsp-proxy' }, + filetypes = { + 'sql', + }, + root_dir = vim.fs.root(0, { 'postgrestools.jsonc' }), + single_file_support = false, }, docs = { description = [[ -https://github.com/supabase/postgres_lsp +https://pgtools.dev -A Language Server for Postgres +A collection of language tools and a Language Server Protocol (LSP) implementation for Postgres, focusing on developer experience and reliable SQL tooling. ]], }, } |
