mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
18 lines
405 B
Nix
18 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" ];
|
|
};
|
|
}
|