From e9a591d25d1f6e9284f43f600903ab2ccc56d3ad Mon Sep 17 00:00:00 2001 From: niverton Date: Fri, 13 Jun 2025 15:28:45 +0200 Subject: [PATCH] feat(lsp): don't kill dev-tools on timeout --- lua/plugins/20-lsp.lua | 60 ++++++++++++++++++++++++++---------------- 1 file changed, 38 insertions(+), 22 deletions(-) diff --git a/lua/plugins/20-lsp.lua b/lua/plugins/20-lsp.lua index d4a43f7..6cd8c1a 100644 --- a/lua/plugins/20-lsp.lua +++ b/lua/plugins/20-lsp.lua @@ -1,31 +1,47 @@ ---@type LazySpec return { - "AstroNvim/astrolsp", - ---@type AstroLSPOpts - opts = { - ---@diagnostic disable: missing-fields - config = { - clangd = { - filetypes = { "c", "cpp", "objc", "objcpp", "cuda" }, - cmd = { - "clangd", - "--header-insertion=never", -- Disable auto includes - "--enable-config", -- Enable .clangd and clangd.yaml files + { + "AstroNvim/astrolsp", + optional = true, + ---@type AstroLSPOpts + opts = { + ---@diagnostic disable: missing-fields + config = { + clangd = { + filetypes = { "c", "cpp", "objc", "objcpp", "cuda" }, + cmd = { + "clangd", + "--header-insertion=never", -- Disable auto includes + "--enable-config", -- Enable .clangd and clangd.yaml files + }, + }, + slint_lsp = { + root_dir = function() end, -- Fix missing root_dir issue in neoconf (lspconfig doesn't define it...) + }, + qmlls = { + cmd = { "qmlls6" }, }, }, - slint_lsp = { - root_dir = function() end, -- Fix missing root_dir issue in neoconf (lspconfig doesn't define it...) - }, - qmlls = { - cmd = { "qmlls6" }, + servers = { "qmlls" }, + features = { + signature_help = true, + inlay_hints = true, + codelens = true, + semantic_tokens = true, }, }, - servers = { "qmlls" }, - features = { - signature_help = true, - inlay_hints = true, - codelens = true, - semantic_tokens = true, + }, + { + "zeioth/garbage-day.nvim", + optional = true, + opts = { + excluded_lsp_clients = { + "null-ls", + "jdtls", + "marksman", + "lua_ls", + "dev-tools", + }, }, }, }