mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-08-08 03:55:04 +02:00
Updates
This commit is contained in:
parent
1c53a038f4
commit
51bef487c9
2 changed files with 36 additions and 15 deletions
22
init.lua
22
init.lua
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue