feat(grug): word search & history
This commit is contained in:
parent
09b0e66452
commit
c8b6f2af33
@ -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,
|
||||
},
|
||||
},
|
||||
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user