fix overlaps with flash and surround
This commit is contained in:
parent
9b81cc6cb4
commit
8a56a4a350
2 changed files with 16 additions and 8 deletions
|
|
@ -5,7 +5,7 @@
|
|||
extra = {
|
||||
packages = [ pkgs.vimPlugins.arrow-nvim ];
|
||||
|
||||
config = ''
|
||||
config = /*lua*/ ''
|
||||
require('arrow').setup({
|
||||
show_icons = true,
|
||||
leader_key = ';', -- Recommended to be a single key
|
||||
|
|
|
|||
|
|
@ -1,35 +1,43 @@
|
|||
_:
|
||||
{pkgs, ... }:
|
||||
{
|
||||
opts.enable = true;
|
||||
|
||||
extra = {
|
||||
packages = [ pkgs.vimPlugins.flash-nvim ];
|
||||
|
||||
config = /*lua*/ ''
|
||||
require("flash").toggle(true) -- activate toggle flash mode
|
||||
'';
|
||||
};
|
||||
|
||||
rootOpts.keymaps = [
|
||||
{
|
||||
mode = ["n" "x" "o" ];
|
||||
key = "s";
|
||||
key = "gs";
|
||||
options.desc = "Flash jump";
|
||||
action.__raw = ''function() require("flash").jump() end'';
|
||||
}
|
||||
{
|
||||
mode = "n";
|
||||
key = "S";
|
||||
key = "gS";
|
||||
options.desc = "Flash Treesitter";
|
||||
action.__raw = ''function() require("flash").treesitter() end'';
|
||||
}
|
||||
{
|
||||
mode = "o";
|
||||
key = "R";
|
||||
key = "gR";
|
||||
options.desc = "Remote Flash";
|
||||
action.__raw = ''function() require("flash").remote() end'';
|
||||
}
|
||||
{
|
||||
mode = "o";
|
||||
key = "r";
|
||||
key = "gr";
|
||||
options.desc = "Flash Treesitter search";
|
||||
action.__raw = ''function() require("flash").treesitter_search() end'';
|
||||
}
|
||||
{
|
||||
mode = "c";
|
||||
key = "<C-s>";
|
||||
mode = "n";
|
||||
key = "<leader>uf";
|
||||
options.desc = "Toggle flash search";
|
||||
action.__raw = ''function() require("flash").toggle() end'';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue