From 720f0f1a17b4e3c7e222fb1491b0a80e1027d5d0 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 17 Apr 2023 20:13:18 +0300 Subject: [PATCH] feat: editorconfig support --- modules/basic/config.nix | 3 +++ modules/basic/module.nix | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/basic/config.nix b/modules/basic/config.nix index a06cae2..1b4512a 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -103,6 +103,9 @@ in { set termguicolors set t_Co=256 ''} + ${optionalString cfg.enableEditorconfig '' + vim.g.editorconfig = false + ''} ''; }; } diff --git a/modules/basic/module.nix b/modules/basic/module.nix index 3fc62d5..08a3c86 100644 --- a/modules/basic/module.nix +++ b/modules/basic/module.nix @@ -142,7 +142,7 @@ with builtins; { enableEditorconfig = mkOption { type = types.bool; default = false; - description = "Follow editorconfig rules in current directory" + description = "Follow editorconfig rules in current directory"; }; }; }