From 1d2cddf836adf4edb24aa95b2142a90c196d3719 Mon Sep 17 00:00:00 2001 From: Philipp Steinrötter Date: Fri, 21 Mar 2025 11:01:36 +0100 Subject: feat: migrate postgres config to postgrestools #3657 --- lua/lspconfig/configs/postgres_lsp.lua | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'lua') 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. ]], }, } -- cgit v1.2.3-70-g09d2