This commit is contained in:
Bad 2022-08-28 01:03:01 +02:00
parent b47f64dc27
commit a287f2d2e8
3 changed files with 20 additions and 1 deletions

View 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" },
}
'';
};
};
}

View file

@ -10,6 +10,7 @@ in
./go.nix
./rust.nix
./nix.nix
./clangd.nix
];
options.mae.nvim = {

View file

@ -8,7 +8,7 @@
nix.enable = true;
rust.enable = true;
go.enable = true;
#clangd.enable = true;
clangd.enable = true;
#python.enable = true;
};
}