From 62292777f15f848fcdcbb6783cd68f6e635fa136 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Mon, 21 Oct 2024 18:54:15 +0300 Subject: [PATCH] apply review suggestions --- modules/neovim/init/spellcheck.nix | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/modules/neovim/init/spellcheck.nix b/modules/neovim/init/spellcheck.nix index 18788fb..1ce30c3 100644 --- a/modules/neovim/init/spellcheck.nix +++ b/modules/neovim/init/spellcheck.nix @@ -5,7 +5,7 @@ ... }: let inherit (lib.modules) mkIf mkRenamedOptionModule; - inherit (lib.options) mkOption mkEnableOption literalExpression literalMD; + inherit (lib.options) mkOption mkEnableOption literalExpression; inherit (lib.strings) concatStringsSep; inherit (lib.attrsets) mapAttrsToList; inherit (lib.types) listOf str attrsOf; @@ -27,10 +27,9 @@ in { description = '' A list of languages that should be used for spellchecking. - To add your own language files, you may place your `spell` - directory in either {file}`~/.config/nvim` or the - [additionalRuntimePaths](#opt-vim.additionalRuntimePaths) - directory provided by nvf. + To add your own language files, you may place your `spell` directory in either + {file}`$XDG_CONFIG_HOME/nvf` or in a path that is included in the + [additionalRuntimePaths](#opt-vim.additionalRuntimePaths) list provided by nvf. ''; }; @@ -39,15 +38,15 @@ in { default = {"en.utf-8" = ["nvf" "word_you_want_to_add"];}; example = literalExpression ''{"en.utf-8" = ["nvf" "word_you_want_to_add"];}''; description = '' - Additional words to be used for spellchecking. The names of each key - will be used as the language code for the spell file. E.g: + Additional words to be used for spellchecking. The names of each key will be + used as the language code for the spell file. For example ```nix "en.utf-8" = [ ... ]; ``` - will result in `en.utf-8.add.spl` being added to Neovim's runtime - in the `after/spell`