mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
feat: neovim spellchecking
This commit is contained in:
parent
79edfbdb47
commit
30519c1a23
2 changed files with 15 additions and 0 deletions
|
@ -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}
|
||||
''}
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue