From 64c398871d56c20c57c7b294113ca45b7b03f3c5 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 23 Apr 2023 15:46:05 +0200 Subject: [PATCH 1/2] feat: add clangd lsp --- modules/languages/clang.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 = { From 345d8e76a7bf0bf8f39510e70032cfe607c73d44 Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sun, 23 Apr 2023 15:56:54 +0200 Subject: [PATCH 2/2] docs: update release notes --- docs/release-notes/rl-0.4.adoc | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/release-notes/rl-0.4.adoc 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/++.