mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-15 23:17:48 +00:00
Compare commits
2 commits
29b7c415a9
...
3b6b6e7322
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3b6b6e7322 |
||
|
|
ba14b3538e |
2 changed files with 17 additions and 9 deletions
|
|
@ -60,9 +60,6 @@ in {
|
|||
upstream, it no longer makes sense, nor works, to toggle only Trouble.
|
||||
'')
|
||||
# 2024-11-30
|
||||
(mkRemovedOptionModule ["vim" "leaderKey"] ''
|
||||
This has been deprecated in favor of using the more generic `vim.globals`
|
||||
(you can use `vim.globals.mapleader` to change this instead).
|
||||
'')
|
||||
(mkRenamedOptionModule ["vim" "leaderKey"] ["vim" "globals" "mapleader"])
|
||||
];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
}: let
|
||||
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
||||
inherit (lib.strings) optionalString;
|
||||
inherit (lib.types) str attrs lines listOf either path;
|
||||
inherit (lib.types) str attrs lines listOf either path submodule anything;
|
||||
inherit (lib.nvim.types) dagOf;
|
||||
inherit (lib.nvim.lua) listToLuaTable;
|
||||
|
||||
|
|
@ -100,10 +100,21 @@ in {
|
|||
};
|
||||
|
||||
globals = mkOption {
|
||||
type = attrs;
|
||||
default = {
|
||||
mapleader = " ";
|
||||
maplocalleader = ",";
|
||||
default = {};
|
||||
type = submodule {
|
||||
freeformType = anything;
|
||||
options = {
|
||||
mapleader = mkOption {
|
||||
type = str;
|
||||
default = " ";
|
||||
description = "The key used for <leader> mappings";
|
||||
};
|
||||
maplocalleader = mkOption {
|
||||
type = str;
|
||||
default = ",";
|
||||
description = "The key used for <localleader> mappings";
|
||||
};
|
||||
};
|
||||
};
|
||||
example = {"some_variable" = 42;};
|
||||
description = ''
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue