Basic setup
This commit is contained in:
parent
2ba39c6973
commit
0185a988a2
15 changed files with 412 additions and 38 deletions
22
lua/custom/plugins/grug.lua
Normal file
22
lua/custom/plugins/grug.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.open {
|
||||
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