-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
vim.api.nvim_create_user_command(config.values.command_search_visual, function()
local lines = utils.get_visual_selection()
local query = table.concat(lines, " ")
---@diagnostic disable-next-line
core.search(query)
end, { range = true }) -- allowing range to handle f**ing E481
So in this part, after we select one time and then go back to normal and then do :WitSearchVisual without selecting, it keep using the old query unless we select a new line or words again.
Metadata
Metadata
Assignees
Labels
No labels