Skip to content

Set vim.g.loaded_leap = 1 when plugin loaded #200

@HaleTom

Description

@HaleTom

I'm trying to determine whether or not leap has been loaded (because I'm setting up remotions for its mappings iff it is loaded).

Currently, I'm adding my own vim.g.loaded_leap = 1 in my lazy.nvim config() after loading leap.

This variable follows the vim convention for plugins:
https://vimhelp.org/usr_51.txt.html#:~:text=Then%20the%20user,are%20added%20twice.

Is there a better way to determine if leap is currently loaded? Would you consider setting this variable yourself to follow convention?

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