feat: add flash.nvim plugin

This commit is contained in:
Devin Haska 2024-04-26 17:49:31 -06:00
parent 9a9e5cf5f9
commit bd031587a5
2 changed files with 25 additions and 1 deletions

View file

@ -63,7 +63,17 @@ return {
{
"echasnovski/mini.surround",
version = false,
opts = {},
opts = {
mappings = {
add = "gsa", -- Add surrounding in Normal and Visual modes
delete = "gsd", -- Delete surrounding
find = "gsf", -- Find surrounding (to the right)
find_left = "gsF", -- Find surrounding (to the left)
highlight = "gsh", -- Highlight surrounding
replace = "gsr", -- Replace surrounding
update_n_lines = "gsn", -- Update `n_lines`
},
},
},
{
"JoosepAlviste/nvim-ts-context-commentstring",

View file

@ -118,4 +118,18 @@ return {
require("telescope").load_extension("ui-select")
end,
},
{
"folke/flash.nvim",
event = "VeryLazy",
---@type Flash.Config
opts = {},
-- stylua: ignore
keys = {
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
{ "S", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
{ "r", mode = "o", function() require("flash").remote() end, desc = "Remote Flash" },
{ "R", mode = { "o", "x" }, function() require("flash").treesitter_search() end, desc = "Treesitter Search" },
{ "<c-s>", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
},
},
}