From 30519c1a23404153ab0395b4c4241556806cfbee Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 6 Jun 2023 03:25:50 +0300 Subject: [PATCH] feat: neovim spellchecking --- modules/basic/config.nix | 4 ++++ modules/basic/module.nix | 11 +++++++++++ 2 files changed, 15 insertions(+) diff --git a/modules/basic/config.nix b/modules/basic/config.nix index a3e62c29..d5105057 100644 --- a/modules/basic/config.nix +++ b/modules/basic/config.nix @@ -138,6 +138,10 @@ in { ${optionalString (!cfg.enableEditorconfig) '' let g:editorconfig = v:false ''} + ${optionalString (cfg.spellChecking.enable) '' + set spell + set spelllang=${toString cfg.spellChecking.language} + ''} ''; }; } diff --git a/modules/basic/module.nix b/modules/basic/module.nix index 3db8dfe5..ade7d105 100644 --- a/modules/basic/module.nix +++ b/modules/basic/module.nix @@ -13,6 +13,7 @@ with builtins; { default = 20; description = "Set the debug level"; }; + logFile = mkOption { type = types.path; default = "/tmp/nvim.log"; @@ -20,6 +21,16 @@ with builtins; { }; }; + spellChecking = { + enable = mkEnableOption "neovim's built-in spellchecking"; + language = mkOption { + type = types.str; + description = "The language to be used for spellchecking"; + default = "en_US"; + example = "de"; + }; + }; + colourTerm = mkOption { type = types.bool; default = true;