diff options
Diffstat (limited to 'mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua')
| -rw-r--r-- | mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua | 27 |
1 files changed, 1 insertions, 26 deletions
diff --git a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua index 4520597..b7b5812 100644 --- a/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua +++ b/mac/.config/TheSiahxyz/lua/TheSiahxyz/plugins/lsp.lua @@ -101,7 +101,6 @@ return { -- "mutt_ls", "pyright", "ruff", - "sqls", "ts_ls", }, automatic_enable = true, @@ -213,11 +212,6 @@ return { -- }, }) end, - ["sqls"] = function() - lspconfig.sqls.setup({ - capabilities = capabilities, - }) - end, ["ts_ls"] = function() lspconfig.ruff.setup({ capabilities = capabilities, @@ -236,10 +230,6 @@ return { svelte = { "eslint_d" }, python = { "pylint" }, sh = { "shellcheck" }, - sql = { "sqlfluff" }, - svelte = { "eslint_d" }, - typescript = { "eslint_d" }, - typescriptreact = { "eslint_d" }, } local lint_augroup = vim.api.nvim_create_augroup("lint", { clear = true }) @@ -267,8 +257,6 @@ return { "ruff", -- python formatter "shellcheck", -- bash lint "shfmt", -- sh formatter - "sqlfluff", -- sql linter - "sql-formatter", -- sql formatter "stylua", -- lua formatter }, integrations = { @@ -347,7 +335,6 @@ return { markdown = { "prettier" }, python = { "ruff", "isort", "black" }, sh = { "shfmt" }, - sql = { "sql-formatter" }, svelte = { "prettier" }, -- typescript = { "prettier" }, -- typescriptreact = { "prettier" }, @@ -361,19 +348,7 @@ return { if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then return end - local ft = vim.bo[bufnr].filetype - local off = { - javascript = true, - typescript = true, - javascriptreact = true, - typescriptreact = true, - json = true, - css = true, - } - if off[ft] then - return false - end - return { lsp_fallback = true, timeout_ms = 1000, async = false } + return { lsp_format = "fallback", timeout_ms = 1000, async = false } end, }) |
