addet plugins for search and for replace. Also it's great for navigation
This commit is contained in:
parent
5fd69f0d7c
commit
534afbfd84
2 changed files with 37 additions and 0 deletions
15
lua/pika/plugins/flash.lua
Normal file
15
lua/pika/plugins/flash.lua
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
return {
|
||||||
|
"folke/flash.nvim",
|
||||||
|
event = "VeryLazy",
|
||||||
|
vscode = true,
|
||||||
|
-- @type Flash.Config
|
||||||
|
opts = {},
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "s", mode = { "n", "x", "o" }, function() require("flash").jump() end, desc = "Flash" },
|
||||||
|
{ "S", mode = { "n", "o", "x" }, 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" },
|
||||||
|
},
|
||||||
|
}
|
22
lua/pika/plugins/grug-far.lua
Normal file
22
lua/pika/plugins/grug-far.lua
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
return {
|
||||||
|
"MagicDuck/grug-far.nvim",
|
||||||
|
opts = { headerMaxWidth = 80 },
|
||||||
|
cmd = "GrugFar",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<leader>sr",
|
||||||
|
function()
|
||||||
|
local grug = require("grug-far")
|
||||||
|
local ext = vim.bo.buftype == "" and vim.fn.expand("%:e")
|
||||||
|
grug.grug_far({
|
||||||
|
transient = true,
|
||||||
|
prefills = {
|
||||||
|
filesFilter = ext and ext ~= "" and "*." .. ext or nil,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
mode = { "n", "v" },
|
||||||
|
desc = "Search and Replace",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue