plugins/which-key: migrate to mkNeovimPlugin

This commit is contained in:
Austin Horstman 2024-07-29 15:18:12 -05:00
parent 1b135dedc4
commit 1adbf11900
No known key found for this signature in database
2 changed files with 768 additions and 397 deletions

View file

@ -1,29 +1,250 @@
{ {
lib, lib,
helpers,
pkgs, pkgs,
config, config,
options, options,
... ...
}: }:
with lib; with lib;
{ let
options.plugins.which-key = { inherit (lib.nixvim) defaultNullOpts mkRaw toLuaObject;
enable = mkEnableOption "which-key.nvim, a plugin that popup with possible key bindings of the command you started typing"; types = lib.nixvim.nixvimTypes;
package = helpers.mkPluginPackageOption "which-key-nvim" pkgs.vimPlugins.which-key-nvim; listOfLen =
elemType: len:
registrations = mkOption { types.addCheck (types.listOf elemType) (v: length v == len)
type = with types; attrsOf anything; // {
description = '' description = "list of ${toString len} ${
This option is deprecated, use `settings.spec` instead. types.optionDescriptionPhrase (class: class == "noun" || class == "composite") elemType
}";
Note: the keymap format has changed in v3 of which-key.
'';
visible = false;
}; };
settings.spec = helpers.defaultNullOpts.mkListOf' { opt = options.plugins.which-key;
in
lib.nixvim.neovim-plugin.mkNeovimPlugin config {
name = "which-key";
originalName = "which-key.nvim";
defaultPackage = pkgs.vimPlugins.which-key-nvim;
maintainers = [ lib.maintainers.khaneliman ];
# TODO: introduced 2024-08-05: remove after 24.11
optionsRenamedToSettings = [
"hidden"
"icons"
"ignoreMissing"
"keyLabels"
"layout"
"motions"
"operators"
[
"plugins"
"mark"
]
[
"plugins"
"registers"
]
[
"plugins"
"spelling"
]
[
"plugins"
"presets"
"textObjects"
]
[
"plugins"
"presets"
"operators"
]
[
"plugins"
"presets"
"motions"
]
[
"plugins"
"presets"
"windows"
]
[
"plugins"
"presets"
"nav"
]
[
"plugins"
"presets"
"z"
]
[
"plugins"
"presets"
"g"
]
"popupMappings"
"showHelp"
"showKeys"
"triggersBlackList"
"triggersNoWait"
];
imports =
let
basePluginPath = [
"plugins"
"which-key"
];
settingsPath = basePluginPath ++ [ "settings" ];
in
[
(lib.mkRenamedOptionModule
(
basePluginPath
++ [
"disable"
"buftypes"
]
)
(
settingsPath
++ [
"disable"
"bt"
]
)
)
(lib.mkRenamedOptionModule
(
basePluginPath
++ [
"disable"
"filetypes"
]
)
(
settingsPath
++ [
"disable"
"ft"
]
)
)
(lib.mkRenamedOptionModule
(
basePluginPath
++ [
"window"
"winblend"
]
)
(
settingsPath
++ [
"win"
"wo"
"winblend"
]
)
)
(lib.mkRenamedOptionModule
(
basePluginPath
++ [
"window"
"border"
]
)
(
settingsPath
++ [
"win"
"border"
]
)
)
(lib.mkRemovedOptionModule (basePluginPath ++ [ "triggers" ]) ''
Please use `plugins.which-key.settings.triggers` instead.
See the plugin documentation for more details about the new option signature:
https://github.com/folke/which-key.nvim#-triggers
'')
(lib.mkRemovedOptionModule
(
basePluginPath
++ [
"window"
"padding"
]
)
''
Please use `plugins.which-key.settings.win.padding` instead.
See the plugin documentation for more details about the new option:
https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
''
)
(lib.mkRemovedOptionModule
(
basePluginPath
++ [
"window"
"margin"
]
)
''
Please use `plugins.which-key.settings.layout` instead.
See the plugin documentation for more details about the new options:
https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
''
)
(lib.mkRemovedOptionModule
(
basePluginPath
++ [
"window"
"position"
]
)
''
Please use `plugins.which-key.settings.layout`, `plugins.which-key.settings.win.title_pos`, or `plugins.which-key.settings.win.footer_pos` instead.
See the plugin documentation for more details about the new options:
https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
''
)
];
settingsOptions = {
preset = defaultNullOpts.mkEnumFirstDefault [
"classic"
"modern"
"helix"
false
] "Preset style for WhichKey. Set to false to disable.";
delay = defaultNullOpts.mkInt' {
pluginDefault.__raw = ''
function(ctx)
return ctx.plugin and 0 or 200
end
'';
description = "Delay before showing the popup. Can be a number or a function that returns a number.";
};
filter = defaultNullOpts.mkLuaFn' {
pluginDefault.__raw = ''
function(mapping)
return true
end
'';
description = "Filter used to exclude mappings";
};
spec = defaultNullOpts.mkListOf' {
type = with types; attrsOf anything; type = with types; attrsOf anything;
pluginDefault = [ ]; pluginDefault = [ ];
description = '' description = ''
@ -37,275 +258,336 @@ with lib;
example = [ example = [
{ {
__unkeyed-1 = "<leader>w"; __unkeyed-1 = "<leader>w";
desc = "Window actions"; proxy = "<C-w>";
group = "windows";
} }
{ {
__unkeyed-1 = "<leader>b"; __unkeyed-1 = "<leader>b";
desc = "Buffer actions"; group = "󰓩 Buffers";
} }
{ {
__unkeyed-1 = "<leader>p"; __unkeyed = "<leader>r";
desc = "Find git files with telescope"; mode = "x";
} group = " Refactor";
{
__unkeyed-1 = "<leader>p";
__unkeyed-2.__raw = "function() print('Optional action') end";
desc = "Print \"optional action\"";
} }
]; ];
}; };
plugins = { notify = defaultNullOpts.mkBool true "Show a warning when issues were detected with your mappings.";
marks = helpers.defaultNullOpts.mkBool true "shows a list of your marks on ' and `";
registers = helpers.defaultNullOpts.mkBool true ''shows your registers on " in NORMAL or <C-r> in INSERT mode''; triggers = defaultNullOpts.mkListOf (with types; attrsOf anything) [
{
__unkeyed-1 = "<auto>";
mode = "nxsot";
}
] "Manually setup triggers";
defer = defaultNullOpts.mkLuaFn' {
pluginDefault.__raw = ''
function(ctx)
return ctx.mode == "V" or ctx.mode == "<C-V>
end'';
description = ''
Start hidden and wait for a key to be pressed before showing the popup.
Only used by enabled xo mapping modes.
'';
};
plugins = {
marks = defaultNullOpts.mkBool true ''
Shows a list of your marks on `'` and `` ` ``.
'';
registers = defaultNullOpts.mkBool true ''
Shows your registers on `"` in NORMAL or `<C-r>` in INSERT mode.
'';
spelling = { spelling = {
enabled = helpers.defaultNullOpts.mkBool true "enabling this will show WhichKey when pressing z= to select spelling suggestions"; enabled = defaultNullOpts.mkBool true ''
suggestions = helpers.defaultNullOpts.mkInt 20 "how many suggestions should be shown in the list?"; Enabling this will show WhichKey when pressing `z=` to select spelling suggestions.
'';
suggestions = defaultNullOpts.mkInt 20 ''
How many suggestions should be shown in the list?
'';
}; };
presets = { presets = {
operators = helpers.defaultNullOpts.mkBool true "adds help for operators like d, y, ..."; operators = defaultNullOpts.mkBool true "Adds help for operators like `d`, `y`, ...";
motions = helpers.defaultNullOpts.mkBool true "adds help for motions"; motions = defaultNullOpts.mkBool true "Adds help for motions.";
textObjects = helpers.defaultNullOpts.mkBool true "help for text objects triggered after entering an operator"; text_objects = defaultNullOpts.mkBool true "Help for text objects triggered after entering an operator.";
windows = helpers.defaultNullOpts.mkBool true "default bindings on <c-w>"; windows = defaultNullOpts.mkBool true "Default bindings on `<c-w>`.";
nav = helpers.defaultNullOpts.mkBool true "misc bindings to work with windows"; nav = defaultNullOpts.mkBool true "Misc bindings to work with windows.";
z = helpers.defaultNullOpts.mkBool true "bindings for folds, spelling and others prefixed with z"; z = defaultNullOpts.mkBool true "Show WhichKey for folds, spelling and other bindings prefixed with `z`.";
g = helpers.defaultNullOpts.mkBool true "bindings for prefixed with g"; g = defaultNullOpts.mkBool true "Show WhichKey for bindings prefixed with `g`.";
}; };
}; };
operators = helpers.defaultNullOpts.mkAttrsOf types.str { gc = "Comments"; } '' win = {
add operators that will trigger motion and text object completion no_overlap = defaultNullOpts.mkBool true "Don't allow the popup to overlap with the cursor.";
to enable all native operators, set the preset / operators plugin above
border = defaultNullOpts.mkBorder "none" "which-key" ''
Allows configuring the border of which-key.
Supports all available border types from `vim.api.keyset.win_config.border`.
''; '';
keyLabels = helpers.defaultNullOpts.mkAttrsOf types.str { } '' padding = defaultNullOpts.mkNullable (listOfLen types.int 2) [
override the label used to display some keys. It doesn't effect WK in any other way. 1
''; 2
] "Extra window padding, in the form `[top/bottom, right/left]`.";
motions = { title = defaultNullOpts.mkBool true "Whether to show the title.";
count = helpers.defaultNullOpts.mkBool true "";
title_pos = defaultNullOpts.mkStr "center" "Position of the title.";
zindex = defaultNullOpts.mkUnsignedInt 1000 "Layer depth on the popup window.";
wo = {
winblend = defaultNullOpts.mkNullableWithRaw (types.ints.between 0
100
) 0 "`0` for fully opaque and `100` for fully transparent.";
};
};
layout = {
width = {
min = defaultNullOpts.mkInt 20 "Minimum width.";
max = defaultNullOpts.mkInt null "Maximum width.";
};
spacing = defaultNullOpts.mkInt 3 "Spacing between columns.";
};
keys = {
scroll_up = defaultNullOpts.mkStr "<c-u>" "Binding to scroll up in the popup.";
scroll_down = defaultNullOpts.mkStr "<c-d>" "Binding to scroll down in the popup.";
};
sort =
defaultNullOpts.mkListOf
(types.enum [
"local"
"order"
"group"
"alphanum"
"mod"
"manual"
"case"
])
[
"local"
"order"
"group"
"alphanum"
"mod"
]
"Mappings are sorted using configured sorters and natural sort of the keys.";
expand = defaultNullOpts.mkInt 0 "Expand groups when <= n mappings.";
replace = {
key = defaultNullOpts.mkListOf (types.either types.strLuaFn (with types; listOf str)) (mkRaw ''
function(key)
return require("which-key.view").format(key)
end
'') "Lua functions or list of strings to replace key left side key name with.";
desc = defaultNullOpts.mkListOf (with types; listOf str) [
[
"<Plug>%(?(.*)%)?"
"%1"
]
[
"^%+"
""
]
[
"<[cC]md>"
""
]
[
"<[cC][rR]>"
""
]
[
"<[sS]ilent>"
""
]
[
"^lua%s+"
""
]
[
"^call%s+"
""
]
[
"^:%s*"
""
]
] "Lua patterns to replace right side description references with.";
}; };
icons = { icons = {
breadcrumb = helpers.defaultNullOpts.mkStr "»" "symbol used in the command line area that shows your active key combo"; breadcrumb = defaultNullOpts.mkStr "»" "Symbol used in the command line area that shows your active key combo.";
separator = helpers.defaultNullOpts.mkStr "" "symbol used between a key and it's label"; separator = defaultNullOpts.mkStr "" "Symbol used between a key and its label.";
group = helpers.defaultNullOpts.mkStr "+" "symbol prepended to a group"; group = defaultNullOpts.mkStr "+" "Symbol prepended to a group.";
}; ellipsis = defaultNullOpts.mkStr "" "Symbol used for overflow.";
mappings = defaultNullOpts.mkBool true "Set to false to disable all mapping icons.";
rules = defaultNullOpts.mkNullable (
with types; either (listOf attrs) bool
) [ ] "Icon rules. Set to false to disable all icons.";
colors = defaultNullOpts.mkBool true ''
Use the highlights from mini.icons.
popupMappings = { When `false`, it will use `WhichKeyIcon` instead.
scrollDown = helpers.defaultNullOpts.mkStr "<c-d>" "binding to scroll down inside the popup";
scrollUp = helpers.defaultNullOpts.mkStr "<c-u>" "binding to scroll up inside the popup";
};
window =
let
spacingOptions = types.submodule {
options =
genAttrs
[
"top"
"right"
"bottom"
"left"
]
(
n:
mkOption {
type = types.ints.unsigned;
description = "Spacing at the ${n}.";
}
);
};
in
{
border = helpers.defaultNullOpts.mkBorder "none" "which-key" "";
position = helpers.defaultNullOpts.mkEnumFirstDefault [
"bottom"
"top"
] "";
margin = helpers.defaultNullOpts.mkNullable spacingOptions {
top = 1;
right = 0;
bottom = 1;
left = 0;
} "extra window margin";
padding = helpers.defaultNullOpts.mkNullable spacingOptions {
top = 1;
right = 2;
bottom = 1;
left = 2;
} "extra window padding";
winblend = helpers.defaultNullOpts.mkNullable (types.ints.between 0
100
) 0 "0 for fully opaque and 100 for fully transparent";
};
layout =
let
rangeOption = types.submodule {
options = {
min = mkOption {
type = types.int;
description = "Minimum size.";
};
max = mkOption {
type = types.int;
description = "Maximum size.";
};
};
};
in
{
height = helpers.defaultNullOpts.mkNullable rangeOption {
min = 4;
max = 25;
} "min and max height of the columns";
width = helpers.defaultNullOpts.mkNullable rangeOption {
min = 20;
max = 50;
} "min and max width of the columns";
spacing = helpers.defaultNullOpts.mkInt 3 "spacing between columns";
align = helpers.defaultNullOpts.mkEnumFirstDefault [
"left"
"center"
"right"
] "";
};
ignoreMissing = helpers.defaultNullOpts.mkBool false "enable this to hide mappings for which you didn't specify a label";
hidden = helpers.defaultNullOpts.mkListOf types.str [
"<silent>"
"<cmd>"
"<Cmd>"
"<CR>"
"^:"
"^ "
"^call "
"^lua "
] "hide mapping boilerplate";
showHelp = helpers.defaultNullOpts.mkBool true "show a help message in the command line for using WhichKey";
showKeys = helpers.defaultNullOpts.mkBool true "show the currently pressed key and its label as a message in the command line";
triggers = helpers.defaultNullOpts.mkNullable (
with types; either (enum [ "auto" ]) (listOf str)
) "auto" "automatically setup triggers, or specify a list manually";
triggersNoWait =
helpers.defaultNullOpts.mkListOf types.str
[
"`"
"'"
"g`"
"g'"
"\""
"<c-r>"
"z="
]
''
list of triggers, where WhichKey should not wait for timeoutlen and show immediately
''; '';
triggersBlackList = keys = defaultNullOpts.mkNullable types.attrs {
helpers.defaultNullOpts.mkAttrsOf (types.listOf types.str) Up = " ";
{ Down = " ";
i = [ Left = " ";
"j" Right = " ";
"k" C = "󰘴 ";
]; M = "󰘵 ";
v = [ D = "󰘳 ";
"j" S = "󰘶 ";
"k" CR = "󰌑 ";
]; Esc = "󱊷 ";
} ScrollWheelDown = "󱕐 ";
'' ScrollWheelUp = "󱕑 ";
list of mode / prefixes that should never be hooked by WhichKey NL = "󰌑 ";
this is mostly relevant for keymaps that start with a native binding BS = "󰁮";
''; Space = "󱁐 ";
Tab = "󰌒 ";
F1 = "󱊫";
F2 = "󱊬";
F3 = "󱊭";
F4 = "󱊮";
F5 = "󱊯";
F6 = "󱊰";
F7 = "󱊱";
F8 = "󱊲";
F9 = "󱊳";
F10 = "󱊴";
F11 = "󱊵";
F12 = "󱊶";
} "Icons used by key format.";
};
show_help = defaultNullOpts.mkBool true "Show a help message in the command line for using WhichKey.";
show_keys = defaultNullOpts.mkBool true "Show the currently pressed key and its label as a message in the command line.";
disable = { disable = {
buftypes = helpers.defaultNullOpts.mkListOf types.str [ ] "Disabled by default for Telescope"; bt = defaultNullOpts.mkListOf types.str [ ] "Buftypes to disable WhichKey.";
filetypes = helpers.defaultNullOpts.mkListOf types.str [ ] ""; ft = defaultNullOpts.mkListOf types.str [ ] "Filetypes to disable WhichKey.";
};
}; };
config = debug = defaultNullOpts.mkBool false "Enable `wk.log` in the current directory.";
let
cfg = config.plugins.which-key;
opt = options.plugins.which-key;
setupOptions = {
plugins = {
inherit (cfg.plugins) marks registers spelling;
presets = {
inherit (cfg.plugins.presets) operators motions;
text_objects = cfg.plugins.presets.textObjects;
inherit (cfg.plugins.presets)
windows
nav
z
g
;
}; };
};
inherit (cfg) operators; settingsExample = {
key_labels = cfg.keyLabels; preset = false;
inherit (cfg) motions icons;
popup_mappings = { delay = 200;
scroll_down = cfg.popupMappings.scrollDown;
scroll_up = cfg.popupMappings.scrollUp; spec = [
};
window =
let
mkSpacing =
opt:
helpers.ifNonNull' opt [
opt.top
opt.right
opt.bottom
opt.top
];
in
{ {
inherit (cfg.window) border position; __unkeyed-1 = "<leader>b";
margin = mkSpacing cfg.window.margin; group = "󰓩 Buffers";
padding = mkSpacing cfg.window.padding; }
inherit (cfg.window) winblend; {
}; __unkeyed-1 = "<leader>bs";
inherit (cfg) layout; group = "󰒺 Sort";
ignore_missing = cfg.ignoreMissing; }
inherit (cfg) hidden; {
show_help = cfg.showHelp; __unkeyed-1 = "<leader>g";
show_keys = cfg.showKeys; group = "󰊢 Git";
inherit (cfg.settings) spec; }
inherit (cfg) triggers; {
triggers_nowait = cfg.triggersNoWait; __unkeyed-1 = "<leader>f";
triggers_blacklist = cfg.triggersBlackList; group = " Find";
inherit (cfg) disable; }
}; {
in __unkeyed-1 = "<leader>r";
mkIf cfg.enable { group = " Refactor";
extraPlugins = [ cfg.package ]; }
{
__unkeyed-1 = "<leader>t";
group = " Terminal";
}
{
__unkeyed-1 = "<leader>u";
group = " UI/UX";
}
];
warnings = optional opt.registrations.isDefined '' replace = {
desc = [
[
"<space>"
"SPACE"
]
[
"<leader>"
"SPACE"
]
[
"<[cC][rR]>"
"RETURN"
]
[
"<[tT][aA][bB]>"
"TAB"
]
[
"<[bB][sS]>"
"BACKSPACE"
]
];
};
notify = false;
win = {
border = "single";
};
expand = 1;
};
# TODO: introduced 2024-07-29: remove after 24.11
extraOptions = {
registrations = mkOption {
type = with types; attrsOf anything;
description = ''
This option is deprecated, use `settings.spec` instead.
Note: the keymap format has changed in v3 of which-key.
'';
visible = false;
};
};
# TODO: introduced 2024-07-29: remove after 24.11
# NOTE: this may be upgraded to a mkRemoveOptionModule when which-key removes support
extraConfig =
cfg:
lib.mkIf opt.registrations.isDefined {
warnings = [
''
nixvim (plugins.which-key): nixvim (plugins.which-key):
The option definition `plugins.which-key.registrations' in ${showFiles opt.registrations.files} has been deprecated in which-key v3; please remove it. The option definition `plugins.which-key.registrations' in ${showFiles opt.registrations.files} has been deprecated in which-key v3; please remove it.
You should use `plugins.which-key.settings.spec' instead. You should use `plugins.which-key.settings.spec' instead.
Note: the spec format has changed in which-key v3 Note: the spec format has changed in which-key v3
See: https://github.com/folke/which-key.nvim?tab=readme-ov-file#%EF%B8%8F-mappings See: https://github.com/folke/which-key.nvim?tab=readme-ov-file#%EF%B8%8F-mappings
''; ''
];
extraConfigLua = extraConfigLua = lib.optionalString opt.registrations.isDefined ''
'' require("which-key").register(${toLuaObject cfg.registrations})
require("which-key").setup(${helpers.toLuaObject setupOptions}) '';
''
+ (optionalString (opt.registrations.isDefined && cfg.registrations != { }) ''
require("which-key").register(${helpers.toLuaObject cfg.registrations})
'');
}; };
} }

View file

@ -7,8 +7,201 @@
plugins.which-key = { plugins.which-key = {
enable = true; enable = true;
settings = {
preset = "classic";
delay.__raw = ''
function(ctx)
return ctx.plugin and 0 or 200
end
'';
filter.__raw = ''
function(mapping)
return true
end
'';
spec = [ ];
notify = true;
triggers = [
{
__unkeyed = "<auto>";
mode = "nsxot";
}
];
defer.__raw = ''
function(ctx)
return ctx.mode == "V" or ctx.mode == "<C-V>"
end
'';
plugins = {
marks = true;
registers = true;
spelling = {
enabled = true;
suggestions = 20;
};
presets = {
operators = true;
motions = true;
text_objects = true;
windows = true;
nav = true;
z = true;
g = true;
};
};
win = {
no_overlap = true;
padding = [
1
2
];
title = true;
title_pos = "center";
zindex = 1000;
bo = { };
wo = { };
};
layout = {
width = {
min = 20;
};
spacing = 3;
};
keys = {
scroll_down = "<c-d>";
scroll_up = "<c-u>";
};
sort = [
"local"
"order"
"group"
"alphanum"
"mod"
];
expand = 0;
replace = {
key = [
{
__raw = ''
function(key)
return require("which-key.view").format(key)
end
'';
}
];
desc = [
[
"<Plug>%(?(.*)%)?"
"%1"
]
[
"^%+"
""
]
[
"<[cC]md>"
""
]
[
"<[cC][rR]>"
""
]
[
"<[sS]ilent>"
""
]
[
"^lua%s+"
""
]
[
"^call%s+"
""
]
[
"^:%s*"
""
]
];
};
icons = {
breadcrumb = "»";
separator = "";
group = "+";
ellipsis = "";
mappings = true;
rules = [ ];
colors = true;
keys = {
Up = " ";
Down = " ";
Left = " ";
Right = " ";
C = "󰘴 ";
M = "󰘵 ";
D = "󰘳 ";
S = "󰘶 ";
CR = "󰌑 ";
Esc = "󱊷 ";
ScrollWheelDown = "󱕐 ";
ScrollWheelUp = "󱕑 ";
NL = "󰌑 ";
BS = "󰁮";
Space = "󱁐 ";
Tab = "󰌒 ";
F1 = "󱊫";
F2 = "󱊬";
F3 = "󱊭";
F4 = "󱊮";
F5 = "󱊯";
F6 = "󱊰";
F7 = "󱊱";
F8 = "󱊲";
F9 = "󱊳";
F10 = "󱊴";
F11 = "󱊵";
F12 = "󱊶";
};
};
show_help = true;
show_keys = true;
disable = {
bt = [ ];
ft = [ ];
};
debug = false;
};
};
};
# Testing for registrations # Testing for registrations
settings.spec = mappings = {
plugins.which-key = {
enable = true;
settings = {
spec =
let let
mode = [ mode = [
"n" "n"
@ -59,110 +252,6 @@
inherit mode; inherit mode;
} }
]; ];
plugins = {
marks = true;
registers = true;
spelling = {
enabled = true;
suggestions = 20;
};
presets = {
operators = true;
motions = true;
textObjects = true;
windows = true;
nav = true;
z = true;
g = true;
};
};
operators = {
gc = "Comments";
};
keyLabels = { };
motions = {
count = true;
};
icons = {
breadcrumb = "»";
separator = "";
group = "+";
};
popupMappings = {
scrollDown = "<c-d>";
scrollUp = "<c-u>";
};
window = {
border = "none";
position = "bottom";
margin = {
top = 1;
right = 0;
bottom = 1;
left = 0;
};
padding = {
top = 1;
right = 2;
bottom = 1;
left = 2;
};
winblend = 0;
};
layout = {
height = {
min = 4;
max = 25;
};
width = {
min = 20;
max = 50;
};
spacing = 3;
align = "left";
};
ignoreMissing = false;
hidden = [
"<silent>"
"<cmd>"
"<Cmd>"
"<CR>"
"^:"
"^ "
"^call "
"^lua "
];
showHelp = true;
showKeys = true;
triggers = "auto";
triggersNoWait = [
"`"
"'"
"g`"
"g'"
''"''
"<c-r>"
"z="
];
triggersBlackList = {
i = [
"j"
"k"
];
v = [
"j"
"k"
];
};
disable = {
buftypes = [ ];
filetypes = [ ];
}; };
}; };
}; };