Clangd
This commit is contained in:
parent
b47f64dc27
commit
a287f2d2e8
3 changed files with 20 additions and 1 deletions
18
users/modules/neovim/clangd.nix
Normal file
18
users/modules/neovim/clangd.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{ lib, pkgs, config, ... }:
|
||||
let
|
||||
cfg = config.mae.nvim.clangd;
|
||||
in
|
||||
with lib;
|
||||
{
|
||||
options.mae.nvim.clangd.enable = lib.mkEnableOption "Enable C/C++ language support(with clangd) in neovim";
|
||||
config = mkIf cfg.enable {
|
||||
mae.nvim.lsp.servers.clangd = {
|
||||
enable = true;
|
||||
script = ''
|
||||
{
|
||||
cmd = { "${pkgs.clang-tools}/bin/clangd" },
|
||||
}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
|
@ -10,6 +10,7 @@ in
|
|||
./go.nix
|
||||
./rust.nix
|
||||
./nix.nix
|
||||
./clangd.nix
|
||||
];
|
||||
|
||||
options.mae.nvim = {
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
nix.enable = true;
|
||||
rust.enable = true;
|
||||
go.enable = true;
|
||||
#clangd.enable = true;
|
||||
clangd.enable = true;
|
||||
#python.enable = true;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue