mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
feat(modules/basic): make leader key configurable
This commit is contained in:
parent
9c3e82b41b
commit
93c8643fd8
2 changed files with 9 additions and 0 deletions
|
@ -142,6 +142,9 @@ in {
|
||||||
set spell
|
set spell
|
||||||
set spelllang=${toString cfg.spellChecking.language}
|
set spelllang=${toString cfg.spellChecking.language}
|
||||||
''}
|
''}
|
||||||
|
${optionalString (cfg.leaderKey != null) ''
|
||||||
|
let mapleader = "${toString cfg.leaderKey}"
|
||||||
|
''}
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,6 +31,12 @@ with builtins; {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
leaderKey = mkOption {
|
||||||
|
type = with types; nullOr str;
|
||||||
|
default = null;
|
||||||
|
description = "The leader key to be used internally";
|
||||||
|
};
|
||||||
|
|
||||||
colourTerm = mkOption {
|
colourTerm = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
Loading…
Reference in a new issue