mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 23:35:13 +00:00
Compare commits
No commits in common. "3b6b6e7322b968bd38bffe3121fc318b3f44cc40" and "29b7c415a98eab1e8e352e831308279e8c8df306" have entirely different histories.
3b6b6e7322
...
29b7c415a9
2 changed files with 9 additions and 17 deletions
|
|
@ -60,6 +60,9 @@ in {
|
||||||
upstream, it no longer makes sense, nor works, to toggle only Trouble.
|
upstream, it no longer makes sense, nor works, to toggle only Trouble.
|
||||||
'')
|
'')
|
||||||
# 2024-11-30
|
# 2024-11-30
|
||||||
(mkRenamedOptionModule ["vim" "leaderKey"] ["vim" "globals" "mapleader"])
|
(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).
|
||||||
|
'')
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -5,7 +5,7 @@
|
||||||
}: let
|
}: let
|
||||||
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
inherit (lib.options) mkOption mkEnableOption literalMD literalExpression;
|
||||||
inherit (lib.strings) optionalString;
|
inherit (lib.strings) optionalString;
|
||||||
inherit (lib.types) str attrs lines listOf either path submodule anything;
|
inherit (lib.types) str attrs lines listOf either path;
|
||||||
inherit (lib.nvim.types) dagOf;
|
inherit (lib.nvim.types) dagOf;
|
||||||
inherit (lib.nvim.lua) listToLuaTable;
|
inherit (lib.nvim.lua) listToLuaTable;
|
||||||
|
|
||||||
|
|
@ -100,21 +100,10 @@ in {
|
||||||
};
|
};
|
||||||
|
|
||||||
globals = mkOption {
|
globals = mkOption {
|
||||||
default = {};
|
type = attrs;
|
||||||
type = submodule {
|
default = {
|
||||||
freeformType = anything;
|
mapleader = " ";
|
||||||
options = {
|
maplocalleader = ",";
|
||||||
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;};
|
example = {"some_variable" = 42;};
|
||||||
description = ''
|
description = ''
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue