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

Fallback as a user-defined function for TypescriptGoToSourceDefinition #73

@dsych

Description

@dsych

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.

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