diff --git a/docs/release-notes/rl-0.4.adoc b/docs/release-notes/rl-0.4.adoc new file mode 100644 index 0000000..6f35b5d --- /dev/null +++ b/docs/release-notes/rl-0.4.adoc @@ -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/++. diff --git a/modules/languages/clang.nix b/modules/languages/clang.nix index 39e5031..a779dd5 100644 --- a/modules/languages/clang.nix +++ b/modules/languages/clang.nix @@ -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 = {