Skip to content

Error On WitSearchVisual #6

@0xJWLabs

Description

@0xJWLabs
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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions