mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-11-09 22:55:58 +01:00
Merge pull request #61 from horriblename/feat-clangd
feat: add clangd lsp
This commit is contained in:
commit
9e224d710c
2 changed files with 21 additions and 0 deletions
10
docs/release-notes/rl-0.4.adoc
Normal file
10
docs/release-notes/rl-0.4.adoc
Normal 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/++.
|
|
@ -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