Add a new field callback to the option in order to enable us to execute arbitrary instructions after jumping to the target location.
Usage
require('lspfuzzy').setup {
callback = function ()
vim.api.nvim_command("normal! zz")
end,
}
Motivation
After jumping to the target location, I often would like to execute the normal! zz command in order to redraw the cursor line to be the center of the window, or make the line to be blinking by using another vim plugin.
callback
to theoption
in order to enable us to execute arbitrary instructions after jumping to the target location.Usage
Motivation
After jumping to the target location, I often would like to execute the
normal! zz
command in order to redraw the cursor line to be the center of the window, or make the line to be blinking by using another vim plugin.