add some keymaps for vscode scenario
This commit is contained in:
26
lua/lazyvim/flash.lua
Normal file
26
lua/lazyvim/flash.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
return {
|
||||
{
|
||||
"folke/flash.nvim",
|
||||
event = "VeryLazy",
|
||||
---@type Flash.Config
|
||||
opts = {
|
||||
modes = {
|
||||
search = { enabled = true },
|
||||
char = { enabled = false },
|
||||
-- treesitter = { enabled = true, highlight = { backdrop = false } },
|
||||
-- remote = { enabled = true, highlight = { backdrop = false } },
|
||||
},
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "s", mode = { "n", "x", "o" }, false },
|
||||
{ "S", mode = { "n", "o", "x" }, false },
|
||||
{ "r", mode = "o", false },
|
||||
{ "R", mode = { "o", "x" }, false },
|
||||
{ "<c-s>", mode = { "c" }, false },
|
||||
{ "<a-/>", mode = { "n", "x", "o" }, function() require("flash").toggle() end, desc = "Toggle Flash Search" },
|
||||
-- { "<leader>j", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||
{ "<leader>ct", mode = { "n", "x", "o" }, function() require("flash").treesitter() end, desc = "Flash Treesitter" },
|
||||
},
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user