diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index 35e93d5..7a28339 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -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", diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 2d7716f..99fb667 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -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" }, + { "", mode = { "c" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" }, + }, + }, }