From cd93f165eac0885c65ea69c4f63b054bff205208 Mon Sep 17 00:00:00 2001 From: Asad Moosvi Date: Mon, 9 Sep 2024 15:33:18 +0500 Subject: [PATCH] [lsp] add sql language server `sqls` Disable the lsp formatting for this language server as there's a bug currently that removes all whitespaces. See https://github.com/sqls-server/sqls/issues/149 --- lua/kickstart/plugins/conform.lua | 2 +- lua/kickstart/plugins/lspconfig.lua | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/kickstart/plugins/conform.lua b/lua/kickstart/plugins/conform.lua index 3c7581e..1dc20eb 100644 --- a/lua/kickstart/plugins/conform.lua +++ b/lua/kickstart/plugins/conform.lua @@ -18,7 +18,7 @@ return { -- Disable "format_on_save lsp_fallback" for languages that don't -- have a well standardized coding style. You can add additional -- languages here or re-enable it for the disabled ones. - local disable_filetypes = { c = false, cpp = false } + local disable_filetypes = { c = false, cpp = false, sql = true } return { timeout_ms = 500, lsp_fallback = not disable_filetypes[vim.bo[bufnr].filetype], diff --git a/lua/kickstart/plugins/lspconfig.lua b/lua/kickstart/plugins/lspconfig.lua index 9349879..3c49375 100644 --- a/lua/kickstart/plugins/lspconfig.lua +++ b/lua/kickstart/plugins/lspconfig.lua @@ -180,6 +180,7 @@ return { emmet_language_server = {}, cssls = {}, ts_ls = {}, + sqls = {}, } -- Ensure the servers and tools above are installed