plugins.lz-n.keymaps
Define keymaps that will use lz.n’s keymap(<plugin>).set
functionality.
This provides a more intuitive way to define lazy-loaded keymaps with the familiar keymaps
option API style.
Type: list of (submodule)
Default:
[ ]
Example:
[
{
action = lib.nixvim.mkRaw "function() require('telescope.builtin').find_files() end";
key = "<leader>ff";
options = {
desc = "Find files";
};
plugin = "telescope.nvim";
}
{
action = "<CMD>Neotree toggle<CR>";
key = "<leader>ft";
options = {
desc = "NeoTree toggle";
};
plugin = "neo-tree.nvim";
}
]
Declared by:
plugins.lz-n.keymaps.*.action
The action to execute.
Type: string or raw lua code
Declared by:
plugins.lz-n.keymaps.*.key
The key to map.
Type: string
Example:
"<C-m>"
Declared by:
plugins.lz-n.keymaps.*.mode
One or several modes.
Use the short-names ("n"
, "v"
, …).
See :h map-modes
to learn more.
Type: one of or non-empty list of “”, “n”, “!”, “i”, “c”, “v”, “x”, “s”, “o”, “t”, “l”, “!a”, “ia”, “ca”
Default:
""
Example:
[
"n"
"v"
]
Declared by:
plugins.lz-n.keymaps.*.plugin
The plugin (name or spec) to lazy-load when the keymap is triggered.
note
This must match the name used in the plugins
list or be a valid plugin that can be loaded.
Type: string or (attribute set of anything)
Example:
"telescope.nvim"
Declared by: