Skip to content

Commit

Permalink
[lsp] add sql language server sqls
Browse files Browse the repository at this point in the history
Disable the lsp formatting for this language server as there's a bug
currently that removes all whitespaces. See sqls-server/sqls#149
  • Loading branch information
asadmoosvi committed Sep 9, 2024
1 parent 01aaad4 commit cd93f16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lua/kickstart/plugins/conform.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down
1 change: 1 addition & 0 deletions lua/kickstart/plugins/lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ return {
emmet_language_server = {},
cssls = {},
ts_ls = {},
sqls = {},
}

-- Ensure the servers and tools above are installed
Expand Down

0 comments on commit cd93f16

Please sign in to comment.