feat: neovim spellchecking

This commit is contained in:
NotAShelf 2023-06-06 03:25:50 +03:00
parent 79edfbdb47
commit 30519c1a23
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22
2 changed files with 15 additions and 0 deletions

View file

@ -138,6 +138,10 @@ in {
${optionalString (!cfg.enableEditorconfig) '' ${optionalString (!cfg.enableEditorconfig) ''
let g:editorconfig = v:false let g:editorconfig = v:false
''} ''}
${optionalString (cfg.spellChecking.enable) ''
set spell
set spelllang=${toString cfg.spellChecking.language}
''}
''; '';
}; };
} }

View file

@ -13,6 +13,7 @@ with builtins; {
default = 20; default = 20;
description = "Set the debug level"; description = "Set the debug level";
}; };
logFile = mkOption { logFile = mkOption {
type = types.path; type = types.path;
default = "/tmp/nvim.log"; 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 { colourTerm = mkOption {
type = types.bool; type = types.bool;
default = true; default = true;