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
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