diagnostics/nvim-lint: enable autocmd only if nvim-lint is enabled

This commit is contained in:
raf 2025-03-31 03:22:25 +03:00 committed by Venkatesan Ravi
parent 5715e3956b
commit ae082b7704

View file

@ -31,7 +31,7 @@ in {
'';
};
})
(mkIf cfg.lint_after_save {
(mkIf (cfg.enable && cfg.lint_after_save) {
vim = {
augroups = [{name = "nvf_nvim_lint";}];
autocmds = [