mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 13:30:17 +00:00
20 lines
440 B
Nix
20 lines
440 B
Nix
{
|
|
config,
|
|
lib,
|
|
pkgs,
|
|
...
|
|
}: let
|
|
inherit (lib.meta) getExe;
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.nvim.types) mkDiagnosticsPresetEnableOption;
|
|
|
|
cfg = config.vim.diagnostics.presets.cpplint;
|
|
in {
|
|
options.vim.diagnostics.presets.cpplint = {
|
|
enable = mkDiagnosticsPresetEnableOption "cpplint" "cpplint";
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
vim.diagnostics.nvim-lint.linters.cpplint.cmd = getExe pkgs.cpplint;
|
|
};
|
|
}
|