You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kickstart.nvim/lua/custom/plugins/grug.lua

23 lines
499 B
Lua

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',
},
},
}