diff --git a/modules/basic/config.nix b/modules/basic/config.nix index 1b4512a3..2cab9008 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 82dd802e..443abeeb 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"; }; };