This commit is contained in:
Hendra 2024-11-30 22:12:40 +07:00
parent 1c53a038f4
commit 51bef487c9
2 changed files with 36 additions and 15 deletions

View file

@ -386,7 +386,6 @@ require('lazy').setup({
vim.keymap.set('n', '<leader>sw', builtin.grep_string, { desc = '[S]earch current [W]ord' })
vim.keymap.set('n', '<leader>sg', builtin.live_grep, { desc = '[S]earch by [G]rep' })
vim.keymap.set('n', '<leader>sd', builtin.diagnostics, { desc = '[S]earch [D]iagnostics' })
vim.keymap.set('n', '<leader>sr', builtin.resume, { desc = '[S]earch [R]esume' })
vim.keymap.set('n', '<leader>s.', builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
vim.keymap.set('n', '<leader><leader>', builtin.buffers, { desc = '[ ] Find existing buffers' })
@ -928,6 +927,27 @@ require('lazy').setup({
},
},
{
'MagicDuck/grug-far.nvim',
keys = {
{
'<leader>sr',
function()
require('grug-far').open {}
end,
mode = { 'n', 'v' },
desc = 'Open Search and Replace',
},
},
config = function()
require('grug-far').setup {
-- options, see Configuration section below
-- there are no required options atm
-- engine = 'ripgrep' is default, but 'astgrep' can be specified
}
end,
},
-- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the
-- init.lua. If you want these files, they are in the repository, so you can just download them and
-- put them in the right spots if you want.