Skip to content
This repository has been archived by the owner on Aug 12, 2023. It is now read-only.

Fallback as a user-defined function for TypescriptGoToSourceDefinition #73

Open
dsych opened this issue May 25, 2023 · 1 comment
Open

Comments

@dsych
Copy link

dsych commented May 25, 2023

Allow users to supply the fallback function instead of assuming that they want to call the vanilla implementation.

For example, this would allow us to call telescope's implementation of go-to def:

require("typescript").goToSourceDefinition(winnr, {
    fallback = require("telescope.builtin").lsp_definitions
})

here we would simply check the type of the fallback and if it's a function, we would just call it.

@jose-elias-alvarez
Copy link
Owner

Sure, PR welcome.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants