Skip to content

Lazy loading firenvim #463

Answered by hankertrix
hankertrix asked this question in Q&A
Jan 30, 2023 · 12 comments · 25 replies
Discussion options

You must be logged in to vote

Here's the configuration that worked for me for everyone else that is facing the same issue:

{
    "glacambre/firenvim",
    lazy = not vim.g.started_by_firenvim,
    module = false,
    build = function()
        vim.fn["firenvim#install"](0)
    end,
}

This means that lazy is true when firenvim is not active, which means lazy.nvim will not load firenvim when using Neovim in the terminal, unless you call the build function to build firenvim. Also, lazy will be false when firenvim is being used in the browser, which would get firenvim to load immediately when starting Neovim in the browser. module = false will cause firenvim to throw an error when it is loaded in a require call by another…

Replies: 12 comments 25 replies

Comment options

You must be logged in to vote
1 reply
@hankertrix
Comment options

Comment options

You must be logged in to vote
5 replies
@jakubkaczor
Comment options

@hankertrix
Comment options

@jakubkaczor
Comment options

@hankertrix
Comment options

@musjj
Comment options

Answer selected by hankertrix
Comment options

You must be logged in to vote
3 replies
@hankertrix
Comment options

@cassepipe
Comment options

@hankertrix
Comment options

Comment options

You must be logged in to vote
2 replies
@hankertrix
Comment options

@jrop
Comment options

Comment options

You must be logged in to vote
2 replies
@hankertrix
Comment options

@sweetbbak
Comment options

Comment options

You must be logged in to vote
7 replies
@hankertrix
Comment options

@abeldekat
Comment options

@abeldekat
Comment options

@hankertrix
Comment options

@sweetbbak
Comment options

Comment options

You must be logged in to vote
3 replies
@hankertrix
Comment options

@abeldekat
Comment options

@hankertrix
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@hankertrix
Comment options

Comment options

You must be logged in to vote
1 reply
@hankertrix
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet