feat(grug): word search & history

This commit is contained in:
Michel 2024-09-18 11:06:16 +02:00
parent 09b0e66452
commit c8b6f2af33

View File

@ -15,14 +15,30 @@ return {
{
"<leader>sw",
function()
require('grug-far').open({ prefills = {
flags = '-w',
search = vim.fn.expand("<cword>"),
}})
require('grug-far').open({
prefills = {
flags = '-w',
search = vim.fn.expand("<cword>"),
},
startInInsertMode = false,
transient = true,
})
end,
desc = "Grug: word\\cursor",
},
},
opts = {
history = {
autoSave = {
enabled = false, -- trumps all other settings below
onBufDelete = false,
onReplace = true,
onSyncAll = true,
},
maxHistoryLines = 1000,
},
searchOnInsertLeave = true,
},
},
{