Skip to content

Commit

Permalink
languages(clang): add clangd support
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanisaacs committed Oct 21, 2023
1 parent d5c866e commit d0c4d99
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/languages/clang.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ with builtins; let
}
'';
};

clangd = {
package = [ "clang-tools" ];
lspConfig = lib.warnIf (cfg.lsp.opts != null) "clangd does not use lsp.opts" ''
lspconfig.ccls.setup{
capabilities = capabilities;
on_attach=default_on_attach;
cmd = {"${nvim.languages.commandOptToCmd cfg.lsp.package "clangd"}"};
}
'';
};
};
in
{
Expand Down

0 comments on commit d0c4d99

Please sign in to comment.