feat: add clangd lsp

This commit is contained in:
Ching Pei Yang 2023-04-23 15:46:05 +02:00
parent 796f6558d1
commit 64c398871d

View file

@ -21,6 +21,17 @@ with builtins; let
} }
''; '';
}; };
clangd = {
package = pkgs.clang-tools;
lspConfig = ''
lspconfig.clangd.setup{
capabilities = capabilities;
on_attach=default_on_attach;
cmd = {"${cfg.lsp.package}/bin/clangd"};
${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.opts}"}
}
'';
};
}; };
in { in {
options.vim.languages.clang = { options.vim.languages.clang = {