plugins.fastaction.settings
Options provided to the require('fastaction').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
dismiss_keys = [
"j"
"k"
"<c-c>"
"q"
];
keys = "qwertyuiopasdfghlzxcvbnm";
popup = {
border = "rounded";
hide_cursor = true;
highlight = {
divider = "FloatBorder";
key = "MoreMsg";
title = "Title";
window = "NormalFloat";
};
title = "Select one of:";
};
priority = {
dart = [
{
key = "o";
order = 1;
pattern = "organize import";
}
{
key = "x";
order = 2;
pattern = "extract method";
}
{
key = "e";
order = 3;
pattern = "extract widget";
}
];
};
register_ui_select = false;
}
Declared by:
plugins.fastaction.settings.dismiss_keys
Keys to use to dismiss the popup.
Type: null or (list of (string or raw lua code))
Default:
null
Plugin default:
[
"j"
"k"
"<c-c>"
"q"
]
Declared by:
plugins.fastaction.settings.fallback_threshold
Configures number of options after which fastaction must fallback on vim.ui.select
.
Type: null or unsigned integer, meaning >=0, or raw lua code
Default:
null
Plugin default: 26
Declared by:
plugins.fastaction.settings.keys
Keys to use to map options.
Type: null or string or list of string
Default:
null
Plugin default: "qwertyuiopasdfghlzxcvbnm"
Declared by:
plugins.fastaction.settings.override_function
Override function to map keys to actions.
fun(params: GetActionConfigParams): ActionConfig | nil
Type: null or raw lua code
Default:
null
Plugin default: lib.nixvim.mkRaw "function(_) end"
Declared by:
plugins.fastaction.settings.priority
Specifies the priority and keys to map to patterns matching code actions.
Type: null or (attribute set of ((list of (attribute set of anything)) or raw lua code))
Default:
null
Plugin default:
{
default = [ ];
}
Example:
{
dart = [
{
key = "o";
order = 1;
pattern = "organize import";
}
{
key = "x";
order = 2;
pattern = "extract method";
}
{
key = "e";
order = 3;
pattern = "extract widget";
}
];
}
Declared by:
plugins.fastaction.settings.register_ui_select
Determines if the select popup should be registered as a vim.ui.select
handler.
Type: null or boolean or raw lua code
Default:
null
Plugin default: false
Declared by: