diff options
| author | Philipp Steinrötter <philipp@steinroetter.com> | 2025-03-21 11:01:36 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 03:01:36 -0700 |
| commit | 1d2cddf836adf4edb24aa95b2142a90c196d3719 (patch) | |
| tree | dceaaba073d9b5d0d386597f8eecb8b752d7621f /lua | |
| parent | docs: update configs.md (diff) | |
| download | nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar.gz nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar.bz2 nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar.lz nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar.xz nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.tar.zst nvim-lspconfig-1d2cddf836adf4edb24aa95b2142a90c196d3719.zip | |
feat: migrate postgres config to postgrestools #3657
Diffstat (limited to '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. ]], }, } |
