mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2024-12-21 19:09:49 +01: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;
|
||||
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 {
|
||||
|
|
|
@ -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"];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue