diff options
| author | triethyl <triethylammonium@pm.me> | 2025-09-27 20:02:16 -0400 |
|---|---|---|
| committer | triethyl <triethylammonium@pm.me> | 2025-09-27 20:02:16 -0400 |
| commit | a1c0ecfba40e028d4d730a561fef322bcee97365 (patch) | |
| tree | d3249d849b2b845cd8c0199532ba1c191f09c7c8 /pkgs/custom-neovim/config/lua/lsp.lua | |
| parent | 3399daae1d7baff4be3ae953ae32a9358962ef67 (diff) | |
neovim: bunch of stuff
Diffstat (limited to 'pkgs/custom-neovim/config/lua/lsp.lua')
| -rw-r--r-- | pkgs/custom-neovim/config/lua/lsp.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/custom-neovim/config/lua/lsp.lua b/pkgs/custom-neovim/config/lua/lsp.lua index 3260bbe..64496f6 100644 --- a/pkgs/custom-neovim/config/lua/lsp.lua +++ b/pkgs/custom-neovim/config/lua/lsp.lua @@ -34,6 +34,17 @@ vim.lsp.config("nixd", { }) vim.lsp.enable("nixd") +-- CC LS +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, +}) +vim.lsp.enable("ccls") + -- LSP Autocommands -- Disable semantic tokens to stop weird highlighting. |
