Skip to content

Manually provide peek location #6

Description

@diego-velez

Is there a way that I could manually provide what location to peek in?

Sometimes there are multiple options when using some LSP function (e.g. multiple options for LSP definitions), and I have my custom logic to handle that, but I want to overlook when I manually choose an option.

For example:

local function custom_handler(opts)
    -- Custom logic to handle multiple options
    local chosen_option = ...
    ...
    ...

    require('overlook.api').peek_into(chosen_option) -- Maybe something like this??
end

vim.lsp.buf.definition {on_list = custom_handler}

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions