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}
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: