Skip to content

bug(setup/opts): function runs twice thereby not allowing to override prefix #3

@ruslanSorokin

Description

@ruslanSorokin

Info

While setting it up with lazy I encountered a problem that I cannot override prefix because setup function runs twice.

First it runs from here without any options, so it loads snippets with default prefix.

And only then it runs with user-provided options.

Workaround

init = function(_)
  vim.g.loaded_sveltekit_snippets = true
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions