mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-19 10:59:49 +01:00
feat: add clangd lsp
This commit is contained in:
parent
796f6558d1
commit
64c398871d
1 changed files with 11 additions and 0 deletions
|
@ -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 = {
|
||||||
|
|
Loading…
Reference in a new issue