mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
plugins/fastaction: init
This commit is contained in:
parent
aa06b176e7
commit
3d24cb7261
2 changed files with 278 additions and 0 deletions
84
tests/test-sources/plugins/by-name/fastaction/default.nix
Normal file
84
tests/test-sources/plugins/by-name/fastaction/default.nix
Normal file
|
@ -0,0 +1,84 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.fastaction.enable = true;
|
||||
};
|
||||
|
||||
defaults = {
|
||||
plugins.fastaction = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
popup = {
|
||||
title = "Select one of:";
|
||||
relative = "cursor";
|
||||
border = "rounded";
|
||||
hide_cursor = true;
|
||||
highlight = {
|
||||
divider = "FloatBorder";
|
||||
key = "MoreMsg";
|
||||
title = "Title";
|
||||
window = "NormalFloat";
|
||||
};
|
||||
x_offset = 0;
|
||||
y_offset = 0;
|
||||
};
|
||||
priority.default = [ ];
|
||||
register_ui_select = false;
|
||||
keys = "qwertyuiopasdfghlzxcvbnm";
|
||||
dismiss_keys = [
|
||||
"j"
|
||||
"k"
|
||||
"<c-c>"
|
||||
"q"
|
||||
];
|
||||
override_function.__raw = "function(_) end";
|
||||
fallback_threshold = 26;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.fastaction = {
|
||||
enable = true;
|
||||
|
||||
settings = {
|
||||
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 = [
|
||||
{
|
||||
pattern = "organize import";
|
||||
key = "o";
|
||||
order = 1;
|
||||
}
|
||||
{
|
||||
pattern = "extract method";
|
||||
key = "x";
|
||||
order = 2;
|
||||
}
|
||||
{
|
||||
pattern = "extract widget";
|
||||
key = "e";
|
||||
order = 3;
|
||||
}
|
||||
];
|
||||
register_ui_select = false;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue