add flash

This commit is contained in:
Aditya 2024-03-06 19:16:08 +05:30
parent 2e17a7558f
commit 81d32ab609
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
3 changed files with 67 additions and 0 deletions

View file

@ -51,5 +51,8 @@
./ui/noice.nix ./ui/noice.nix
./ui/nui.nix ./ui/nui.nix
./ui/nvim-notify.nix ./ui/nvim-notify.nix
./utils/better-escape.nix
./utils/flash.nix
]; ];
} }

View file

@ -0,0 +1,7 @@
{
plugins.better-escape = {
enable = true;
clearEmptyLines = true;
timeout = 200;
};
}

57
config/utils/flash.nix Normal file
View file

@ -0,0 +1,57 @@
{
plugins.flash = {
enable = false;
labels = "asdfghjklqwertyuiopzxcvbnm";
search = {
mode = "fuzzy";
};
jump = {
autojump = true;
};
label = {
uppercase = false;
rainbow = {
enabled = false;
shade = 5;
};
};
};
# keymaps = [
# {
# mode = [ "n" "x" "o" ];
# key = "s";
# action = "<cmd>lua require('flash').jump()<cr>";
# options = {
# desc = "Flash";
# };
# }
#
# {
# mode = [ "n" "x" "o" ];
# key = "S";
# action = "<cmd>lua require('flash').treesitter()<cr>";
# options = {
# desc = "Flash Treesitter";
# };
# }
#
# {
# mode = "o";
# key = "r";
# action = "<cmd>lua require('flash').remote()<cr>";
# options = {
# desc = "Remote Flash";
# };
# }
#
# {
# mode = [ "x" "o" ];
# key = "R";
# action = "<cmd>lua require('flash').treesitter_search()<cr>";
# options = {
# desc = "Treesitter Search";
# };
# }
# ];
}