From d8a8fa69a66661c397c8c6e15ab0177d26a35da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Mon, 22 Dec 2025 08:56:38 +0000 Subject: [PATCH] re-enable clangd et al --- shared/home/dev.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/shared/home/dev.lua b/shared/home/dev.lua index 7f4929c..db8ece4 100644 --- a/shared/home/dev.lua +++ b/shared/home/dev.lua @@ -1,12 +1,19 @@ -- Updated to use vim.lsp.config (nvim 0.11+) instead of deprecated lspconfig vim.lsp.config.clangd = { - cmd = { "nicer", "clangd" } + cmd = { "nicer", "clangd" }, + filetypes = { "c", "cpp" }, + root_markers = { "compile_commands.json", ".clangd", ".git" } } vim.lsp.config.gopls = { - cmd = { "nicer", "@gopls@/bin/gopls" } + cmd = { "nicer", "@gopls@/bin/gopls" }, + filetypes = { "go" }, + root_markers = { "go.mod", ".git" } } +-- Enable the LSP servers +vim.lsp.enable({ "clangd", "gopls" }) + vim.api.nvim_exec([[ set grepprg=@ripgrep@/bin/rg\ --vimgrep grepformat^=%f:%l:%c:%m ]], false)