From d33286d5495a4b0869e8cb8e25fc8e0778060eb8 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 31 Mar 2025 03:22:25 +0300 Subject: [PATCH] diagnostics/nvim-lint: enable autocmd only if nvim-lint is enabled --- modules/plugins/diagnostics/nvim-lint/config.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/plugins/diagnostics/nvim-lint/config.nix b/modules/plugins/diagnostics/nvim-lint/config.nix index cf9c45e2..b284270b 100644 --- a/modules/plugins/diagnostics/nvim-lint/config.nix +++ b/modules/plugins/diagnostics/nvim-lint/config.nix @@ -31,7 +31,7 @@ in { ''; }; }) - (mkIf cfg.lint_after_save { + (mkIf (cfg.enable && cfg.lint_after_save) { vim = { augroups = [{name = "nvf_nvim_lint";}]; autocmds = [