diff --git a/modules/languages/clang.nix b/modules/languages/clang.nix index 39e5031b..a779dd59 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 = {