style(spell): apply suggestions

This commit is contained in:
yavko 2023-08-10 14:48:18 +03:00
parent 24c4a08983
commit 13416f0cdf
No known key found for this signature in database
GPG key ID: F07D19A32407F857
2 changed files with 5 additions and 8 deletions

View file

@ -8,10 +8,7 @@ with builtins; let
cfg = config.vim;
in {
config = {
vim.startPlugins =
if cfg.spellChecking.enableProgrammingWordList
then ["plenary-nvim" "vim-dirtytalk"]
else ["plenary-nvim"];
vim.startPlugins = ["plenary-nvim"] ++ lib.optionals (cfg.spellChecking.enableProgrammingWordList) ["vim-dirtytalk"];
vim.maps.normal =
mkIf cfg.disableArrows {

View file

@ -31,12 +31,12 @@ with builtins; {
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 {
type = types.listOf types.str;
type = with types; listOf str;
description = "The languages to be used for spellchecking";
default = ["en_US"];
example = ["en_US" "de"];
default = ["en"];
example = ["en" "de"];
};
};