From 56706da99b439121fa0ca275dbc5c186026d261e Mon Sep 17 00:00:00 2001 From: marshmallow Date: Sun, 15 Jun 2025 10:15:30 +1000 Subject: [PATCH] lsp: skip servers setup elsewhere --- candy/lua/marshmallow/lsp.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/candy/lua/marshmallow/lsp.lua b/candy/lua/marshmallow/lsp.lua index c271d82..e176bb8 100644 --- a/candy/lua/marshmallow/lsp.lua +++ b/candy/lua/marshmallow/lsp.lua @@ -14,10 +14,23 @@ vim.api.nvim_create_autocmd("LspAttach", { }) local lsp_configs = {} +local disabled = { + "rust_analyzer", + "ts_ls", +} for _, f in pairs(vim.api.nvim_get_runtime_file("lsp/*.lua", true)) do local server_name = vim.fn.fnamemodify(f, ":t:r") + + for _, server in ipairs(disabled) do + if server_name == server then + goto skip + end + end + table.insert(lsp_configs, server_name) + + ::skip:: end vim.lsp.enable(lsp_configs) -- 2.51.2