mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
plugins/spellcheck: use the internal vim.spellChecking
as enable condition
This commit is contained in:
parent
f3817fb4b2
commit
27eedd0db6
2 changed files with 6 additions and 6 deletions
|
@ -5,9 +5,9 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.modules) mkIf;
|
inherit (lib.modules) mkIf;
|
||||||
inherit (lib.nvim.dag) entryAfter;
|
inherit (lib.nvim.dag) entryAfter;
|
||||||
cfg = config.vim.spellcheck;
|
cfg = config.vim.spellChecking;
|
||||||
in {
|
in {
|
||||||
config = mkIf cfg.vim-dirtytalk.enable {
|
config = mkIf (cfg.enable && cfg.programmingWordlist.enable) {
|
||||||
vim = {
|
vim = {
|
||||||
startPlugins = ["vim-dirtytalk"];
|
startPlugins = ["vim-dirtytalk"];
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{lib, ...}: let
|
{lib, ...}: let
|
||||||
inherit (lib.options) mkEnableOption;
|
inherit (lib.modules) mkAliasOptionModule;
|
||||||
in {
|
in {
|
||||||
options.vim.spellcheck.vim-dirtytalk = {
|
imports = [
|
||||||
enable = mkEnableOption "vim-dirtytalk, a wordlist for programmers, that includes programming words";
|
(mkAliasOptionModule ["vim" "spellcheck" "vim-dirtytalk" "enable"] ["vim" "spellChecking" "programmingWordlist" "enable"])
|
||||||
};
|
];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue