mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-08 19:57:15 +00:00
modules/neovim: separate options; move package into core/build
This commit is contained in:
parent
4083a74281
commit
199a8b06c5
9 changed files with 258 additions and 211 deletions
17
modules/neovim/spellcheck/options.nix
Normal file
17
modules/neovim/spellcheck/options.nix
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{lib, ...}: let
|
||||
inherit (lib) mkEnableOption mkOption;
|
||||
inherit (lib.types) types;
|
||||
in {
|
||||
options.vim = {
|
||||
spellChecking = {
|
||||
enable = mkEnableOption "neovim's built-in spellchecking";
|
||||
enableProgrammingWordList = mkEnableOption "vim-dirtytalk, a wordlist for programmers, that includes programming words";
|
||||
languages = mkOption {
|
||||
type = with types; listOf str;
|
||||
description = "The languages to be used for spellchecking";
|
||||
default = ["en"];
|
||||
example = ["en" "de"];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue