summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortriethyl <triethylammonium@pm.me>2026-03-12 19:34:28 -0400
committertriethyl <triethylammonium@pm.me>2026-03-12 19:34:28 -0400
commit3969c0706238898ccce79a993fc866f099a2cadd (patch)
treebce9a3763fdd6be1ad8480cd7d674d6f3e2f5ee8
parentfea1f4afd4b6f16f55927e79fa35b8d9e4f71a7c (diff)
neovim: reorganize ccls config
-rw-r--r--pkgs/custom-neovim/config/lua/lsp.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/custom-neovim/config/lua/lsp.lua b/pkgs/custom-neovim/config/lua/lsp.lua
index 1816aba..0b3627e 100644
--- a/pkgs/custom-neovim/config/lua/lsp.lua
+++ b/pkgs/custom-neovim/config/lua/lsp.lua
@@ -38,11 +38,11 @@ vim.lsp.enable("nixd")
vim.lsp.config("ccls", {
cmd = { 'ccls' },
filetypes = { 'c', 'cpp', 'objc', 'objcpp', 'cuda' },
- root_markers = { 'compile_commands.json', '.ccls', '.git' },
offset_encoding = 'utf-32',
- -- ccls does not support sending a null root directory
- -- workspace_required = true,
- workspace_required = false,
+
+ -- Set workspace
+ root_markers = { 'compile_commands.json', '.ccls', '.git' },
+ workspace_required = true,
})
vim.lsp.enable("ccls")