Merge pull request #61 from horriblename/feat-clangd

feat: add clangd lsp
This commit is contained in:
NotAShelf 2023-04-24 18:59:18 +03:00 committed by GitHub
commit 9e224d710c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 21 additions and 0 deletions

View File

@ -0,0 +1,10 @@
[[sec-release-0.4]]
== Release 0.4
Release notes for release 0.4
[[sec-release-0.4-changelog]]
=== Changelog
* Added `clangd` as alternative lsp for C/++.

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 {
options.vim.languages.clang = {