From bedb2a0df105f68a624a49b867f269b6d55a2c89 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Tue, 1 Oct 2024 05:39:12 -0700 Subject: refactor: rename "server_configurations" => "configs" #3330 Problem: The name `server_configurations` is extremely verbose and irritatingly formal and dogmatic. This overlong name is a constant nuisance when reading, writing, and coding. It's also not even correct: these configurations are just as much "client" configurations as they are "server" configurations. Solution: - Rename to a shorter name. - Leave placeholder files for any old URLs that link to the old location. --- lua/lspconfig/configs/postgres_lsp.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/lspconfig/configs/postgres_lsp.lua (limited to 'lua/lspconfig/configs/postgres_lsp.lua') diff --git a/lua/lspconfig/configs/postgres_lsp.lua b/lua/lspconfig/configs/postgres_lsp.lua new file mode 100644 index 00000000..a45824a9 --- /dev/null +++ b/lua/lspconfig/configs/postgres_lsp.lua @@ -0,0 +1,20 @@ +local util = require 'lspconfig.util' + +return { + default_config = { + cmd = { 'postgres_lsp' }, + filetypes = { 'sql' }, + root_dir = util.root_pattern 'root-file.txt', + single_file_support = true, + }, + docs = { + description = [[ +https://github.com/supabase/postgres_lsp + +A Language Server for Postgres + ]], + default_config = { + root_dir = [[util.root_pattern 'root-file.txt']], + }, + }, +} -- cgit v1.3.1