diff --git a/config/default.nix b/config/default.nix index b697cf2..6e22ab2 100644 --- a/config/default.nix +++ b/config/default.nix @@ -51,5 +51,8 @@ ./ui/noice.nix ./ui/nui.nix ./ui/nvim-notify.nix + + ./utils/better-escape.nix + ./utils/flash.nix ]; } diff --git a/config/utils/better-escape.nix b/config/utils/better-escape.nix new file mode 100644 index 0000000..22b136c --- /dev/null +++ b/config/utils/better-escape.nix @@ -0,0 +1,7 @@ +{ + plugins.better-escape = { + enable = true; + clearEmptyLines = true; + timeout = 200; + }; +} diff --git a/config/utils/flash.nix b/config/utils/flash.nix new file mode 100644 index 0000000..e69f264 --- /dev/null +++ b/config/utils/flash.nix @@ -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 = "lua require('flash').jump()"; + # options = { + # desc = "Flash"; + # }; + # } + # + # { + # mode = [ "n" "x" "o" ]; + # key = "S"; + # action = "lua require('flash').treesitter()"; + # options = { + # desc = "Flash Treesitter"; + # }; + # } + # + # { + # mode = "o"; + # key = "r"; + # action = "lua require('flash').remote()"; + # options = { + # desc = "Remote Flash"; + # }; + # } + # + # { + # mode = [ "x" "o" ]; + # key = "R"; + # action = "lua require('flash').treesitter_search()"; + # options = { + # desc = "Treesitter Search"; + # }; + # } + # ]; +} +