Defines 'Command-line mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
RH = "Gitsigns reset_hunk";
}
Defines 'Command-line mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
RH = "Gitsigns reset_hunk";
}
Attribute set representing -> pairs
Type: attribute set of string
Default: { }
Example:
{
# Gets parsed to:
# function abc()
# print 'hello world'
# end
abc = "print 'hello world'";
}
Defines 'Insert and Replace mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<C-BS>" = "<C-W>";
"<C-h>" = "<Left>";
"<C-j>" = "<Down>";
"<C-k>" = "<Up>";
"<C-l>" = "<Right>";
}
Defines 'Insert and Replace mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<C-BS>" = "<C-W>";
"<C-h>" = "<Left>";
"<C-j>" = "<Down>";
"<C-k>" = "<Up>";
"<C-l>" = "<Right>";
}
Lua config
Type: strings concatenated with "\n"
Default: ""
Example:
''
local hooks = require "ibl.hooks"
hooks.register(
hooks.type.WHITESPACE,
hooks.builtin.hide_first_space_indent_level
)
''
Lua config which is placed after lua
script. Unfortunatelly sometimes config requires certain ordering
Type: strings concatenated with "\n"
Default: ""
Example:
''
local hooks = require "ibl.hooks"
hooks.register(
hooks.type.WHITESPACE,
hooks.builtin.hide_first_space_indent_level
)
''
Defines 'Normal mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<leader>/" = ":nohl<cr>";
}
Defines 'Normal mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<leader>/" = ":nohl<cr>";
}
Defines 'Operator pending mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
imma-be-real-with-ya = "I have no idea what for one may use this";
}
Defines 'Operator pending mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
imma-be-real-with-ya = "I have no idea what for one may use this";
}
'vim.opt' alias. Acts same as vimscript 'set' command
Type: attribute set of (boolean or floating point number or signed integer or string)
Default: { }
Example:
{
set = {
clipboard = "unnamed,unnamedplus";
termguicolors = true;
};
}
Results in 'require().setup()'.
Type: attribute set of (attribute set)
Default: { }
Example:
setup.lsp_signature = {
bind = true;
hint_enable = false;
hi_parameter = "Visual";
handler_opts.border = "single";
};
Defines 'Select mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<CR>" = "a<BS>";
}
Defines 'Select mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<CR>" = "a<BS>";
}
Defines 'Terminal mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<Esc>" = "<C-><C-n>";
}
Defines 'Terminal mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<Esc>" = "<C-><C-n>";
}
Allows requiring modules. Gets parset to "require('')."
Type: attribute set of (attribute set)
Default: { }
Example:
use.which-key.register = dsl.callWith {
q = cmd "bdelete" "Delete buffer";
}
Represents 'vim' namespace from neovim lua api.
Type: anything
Default: { }
Example:
{
vim = {
opt = {
clipboard = "unnamed,unnamedplus";
termguicolors = true;
};
};
}
Vimscript config
Type: strings concatenated with "\n"
Default: ""
Example:
"set number"
Vimscript config which is placed after lua
script. Unfortunatelly sometimes config requires certain ordering
Type: strings concatenated with "\n"
Default: ""
Example:
"set number"
Defines 'Visual and Select mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<" = "<gv";
">" = ">gv";
}
Defines 'Visual and Select mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<" = "<gv";
">" = ">gv";
}
Defines 'Visual mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<" = "<gv";
">" = ">gv";
}
Defines 'Visual mode' mappings
Type: attribute set of (null or string)
Default: { }
Example:
{
"<" = "<gv";
">" = ">gv";
}