mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-19 05:24:22 +00:00
diagnostics/presets/cpplint: init
This commit is contained in:
parent
0735ee8cfd
commit
3cd71e08d0
4 changed files with 53 additions and 0 deletions
20
modules/plugins/diagnostics/presets/cpplint.nix
Normal file
20
modules/plugins/diagnostics/presets/cpplint.nix
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
}
|
||||
|
|
@ -2,6 +2,7 @@
|
|||
imports = [
|
||||
./biomejs.nix
|
||||
./checkmake.nix
|
||||
./cpplint.nix
|
||||
./deadnix.nix
|
||||
./djlint.nix
|
||||
./dotenv-linter.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue