Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any Possible Way to have Page ignore/bypass greeter plugins like alpha #39

Closed
dedguy21 opened this issue Feb 24, 2023 · 1 comment
Closed

Comments

@dedguy21
Copy link

"page" crashes if a greeter plugin (alpha-nvim specific to my issue) is installed. Wondering if there is a workaround for this, beyond just disabling alpha which is used extensively.

@I60R
Copy link
Owner

I60R commented Feb 28, 2023

Hi, the following config for lazy.nvim works for me:

{
    'goolord/alpha-nvim',
    dependencies = {
        'nvim-tree/nvim-web-devicons'
    },
    cond = function()
        for i, v in ipairs(vim.v.argv) do
            if v == '--listen' then return false end
        end
        return true
    end,
    config = function ()
        require'alpha'.setup(require'alpha.themes.startify'.config)
    end
},

Since page adds --listen when spawning neovim we can use it as a condition for enabling alpha. Not very elegant but it works. Maybe in the future I'll add some variable for this use case

@I60R I60R closed this as completed Feb 28, 2023
@I60R I60R pinned this issue Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants