mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 17:28:39 +02:00
19 lines
405 B
Nix
19 lines
405 B
Nix
|
{ pkgs, config, lib, ... }:
|
||
|
with lib;
|
||
|
let
|
||
|
cfg = config.programs.nixvim.plugins.lsp.servers.clangd;
|
||
|
in
|
||
|
{
|
||
|
options = {
|
||
|
programs.nixvim.plugins.lsp.servers.clangd = {
|
||
|
enable = mkEnableOption "Enable clangd LSP, for C/C++.";
|
||
|
};
|
||
|
};
|
||
|
|
||
|
config = mkIf cfg.enable {
|
||
|
programs.nixvim.extraPackages = [ pkgs.clang-tools ];
|
||
|
|
||
|
programs.nixvim.plugins.lsp.enabledServers = [ "clangd" ];
|
||
|
};
|
||
|
}
|