feat(nvim): add cmake and clangd lsp
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-11 15:33:38 -04:00
parent 0a3464bb12
commit 4f81012634

View file

@ -13,9 +13,30 @@ in
extraPackages = with pkgs; [
gcc
clang-tools
cmake-language-server
];
extraLuaConfig =
/*
lua
*/
''
local lsp = require('lspconfig');
local coq = require('coq');
lsp.cmake.setup(coq.lsp_ensure_capabilities({}));
lsp.clangd.setup(coq.lsp_ensure_capabilities({
handlers = require('lsp-status').extensions.clangd.setup(),
on_attach = function(_, bufnr)
require("clangd_extensions.inlay_hints").setup_autocmd()
require("clangd_extensions.inlay_hints").set_inlay_hints()
end,
}));
'';
plugins = [
vimPlugins.clangd_extensions-nvim
];
};
};