add flash
This commit is contained in:
parent
2a81d89cc5
commit
d0b55f6037
1 changed files with 37 additions and 0 deletions
37
plugins/flash.nix
Normal file
37
plugins/flash.nix
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
_:
|
||||
{
|
||||
opts.enable = true;
|
||||
|
||||
rootOpts.keymaps = [
|
||||
{
|
||||
mode = ["n" "x" "o" ];
|
||||
key = "s";
|
||||
options.desc = "Flash jump";
|
||||
action.__raw = ''function() require("flash").jump() end'';
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "S";
|
||||
options.desc = "Flash Treesitter";
|
||||
action.__raw = ''function() require("flash").treesitter() end'';
|
||||
}
|
||||
{
|
||||
mode = "o";
|
||||
key = "R";
|
||||
options.desc = "Remote Flash";
|
||||
action.__raw = ''function() require("flash").remote() end'';
|
||||
}
|
||||
{
|
||||
mode = "o";
|
||||
key = "r";
|
||||
options.desc = "Flash Treesitter search";
|
||||
action.__raw = ''function() require("flash").treesitter_search() end'';
|
||||
}
|
||||
{
|
||||
mode = "c";
|
||||
key = "<C-s>";
|
||||
options.desc = "Toggle flash search";
|
||||
action.__raw = ''function() require("flash").toggle() end'';
|
||||
}
|
||||
];
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue