feat(spell): add multiple language support and vim-dirtytalk

BREAKING CHANGE: `vim.spellChecking.language` is replaced with `vim.spellChecking.languages`
This commit is contained in:
yavko 2023-08-06 14:24:54 +03:00
commit 31c237d149
No known key found for this signature in database
GPG key ID: F07D19A32407F857
4 changed files with 34 additions and 7 deletions

View file

@ -31,11 +31,12 @@ 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";
enableProgrammingWordList = mkEnableOption "adds vim-dirtytalk, a wordlist for programmers, that includes programming words";
languages = mkOption {
type = types.listOf types.str;
description = "The languages to be used for spellchecking";
default = ["en_US"];
example = ["en_US" "de"];
};
};