mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
style(spell): apply suggestions
This commit is contained in:
parent
24c4a08983
commit
13416f0cdf
2 changed files with 5 additions and 8 deletions
|
@ -8,10 +8,7 @@ with builtins; let
|
||||||
cfg = config.vim;
|
cfg = config.vim;
|
||||||
in {
|
in {
|
||||||
config = {
|
config = {
|
||||||
vim.startPlugins =
|
vim.startPlugins = ["plenary-nvim"] ++ lib.optionals (cfg.spellChecking.enableProgrammingWordList) ["vim-dirtytalk"];
|
||||||
if cfg.spellChecking.enableProgrammingWordList
|
|
||||||
then ["plenary-nvim" "vim-dirtytalk"]
|
|
||||||
else ["plenary-nvim"];
|
|
||||||
|
|
||||||
vim.maps.normal =
|
vim.maps.normal =
|
||||||
mkIf cfg.disableArrows {
|
mkIf cfg.disableArrows {
|
||||||
|
|
|
@ -31,12 +31,12 @@ with builtins; {
|
||||||
|
|
||||||
spellChecking = {
|
spellChecking = {
|
||||||
enable = mkEnableOption "neovim's built-in spellchecking";
|
enable = mkEnableOption "neovim's built-in spellchecking";
|
||||||
enableProgrammingWordList = mkEnableOption "adds vim-dirtytalk, a wordlist for programmers, that includes programming words";
|
enableProgrammingWordList = mkEnableOption "vim-dirtytalk, a wordlist for programmers, that includes programming words";
|
||||||
languages = mkOption {
|
languages = mkOption {
|
||||||
type = types.listOf types.str;
|
type = with types; listOf str;
|
||||||
description = "The languages to be used for spellchecking";
|
description = "The languages to be used for spellchecking";
|
||||||
default = ["en_US"];
|
default = ["en"];
|
||||||
example = ["en_US" "de"];
|
example = ["en" "de"];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue