From ec5f3a731aa57f1c0598d73523e2fb1ebcaf4aae Mon Sep 17 00:00:00 2001 From: Ching Pei Yang Date: Sat, 22 Apr 2023 00:05:19 +0200 Subject: [PATCH] fix editorconfig option --- modules/basic/config.nix | 4 ++-- modules/basic/module.nix | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/basic/config.nix b/modules/basic/config.nix index 1b4512a..2cab900 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -103,8 +103,8 @@ in { set termguicolors set t_Co=256 ''} - ${optionalString cfg.enableEditorconfig '' - vim.g.editorconfig = false + ${optionalString (!cfg.enableEditorconfig) '' + let g:editorconfig = v:false ''} ''; }; diff --git a/modules/basic/module.nix b/modules/basic/module.nix index 82dd802..443abee 100644 --- a/modules/basic/module.nix +++ b/modules/basic/module.nix @@ -141,7 +141,7 @@ with builtins; { }; enableEditorconfig = mkOption { type = types.bool; - default = false; + default = true; description = "Follow editorconfig rules in current directory"; }; };