mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-05-20 05:56:11 +00:00
diagnostics/presets: init
This commit is contained in:
parent
cd45295f9c
commit
0735ee8cfd
49 changed files with 892 additions and 575 deletions
20
modules/plugins/diagnostics/presets/rumdl.nix
Normal file
20
modules/plugins/diagnostics/presets/rumdl.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.rumdl;
|
||||
in {
|
||||
options.vim.diagnostics.presets.rumdl = {
|
||||
enable = mkDiagnosticsPresetEnableOption "rumdl" "Rumdl";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
vim.diagnostics.nvim-lint.linters.rumdl.cmd = getExe pkgs.rumdl;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue