Open dsych opened 1 year ago
Allow users to supply the fallback function instead of assuming that they want to call the vanilla implementation.
fallback
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.
Sure, PR welcome.
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:
here we would simply check the type of the
fallback
and if it's a function, we would just call it.