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

feature: How to cancel the theme loading when the plugin is automatically installed #713

Closed
1 task done
tietmih opened this issue Apr 2, 2023 · 9 comments
Closed
1 task done
Labels
enhancement New feature or request

Comments

@tietmih
Copy link

tietmih commented Apr 2, 2023

Did you check the docs?

  • I have read all the lazy.nvim docs

Is your feature request related to a problem? Please describe.

When I update the plugin list and restart nvim, the plugin installation is automatically triggered, and the theme is also automatically loaded, disrupting my original color scheme

Describe the solution you'd like

Optional cancel theme loading operation

Describe alternatives you've considered

I can't find any operation to cancel the automatic loading theme in the document, and the option to automatically load the theme list has been blocked by my comment

Additional context

No response

@tietmih tietmih added the enhancement New feature or request label Apr 2, 2023
@tietmih
Copy link
Author

tietmih commented Apr 2, 2023

{ install = { missing = true, -- colorscheme = {}, }, }
This is part of my config

@rsampaths16
Copy link

Is an issue for me as well Just started trying out lazy and it has theme side-effects whenever the I add new plugins and it tries to install them. IMO the plugin should only deal with package-manager aspects and shouldn't have side-effects outside that scope.

@max397574
Copy link
Contributor

well if you comment that part out there won't be anything overwritten

@tietmih
Copy link
Author

tietmih commented Apr 9, 2023

well if you comment that part out there won't be anything overwritten

I tried commenting the subject field but it didn't work. I need to automatically install the plug-in function, so I can't annotate the whole thing.

@max397574
Copy link
Contributor

I have no clue what you're talking about
but you should be able to set colorscheme to {} afaik

@tietmih
Copy link
Author

tietmih commented Apr 11, 2023

I have no clue what you're talking about
but you should be able to set colorscheme to {} afaik

It doesn't work

@folke
Copy link
Owner

folke commented Apr 15, 2023

That colorscheme is only loaded while installing. You should load our own colorscheme after that

@folke folke closed this as not planned Won't fix, can't repro, duplicate, stale Apr 15, 2023
@rsampaths16
Copy link

Hi @folke, shouldn't the default behaviour be to not load/override a colour scheme? Isn't the plugin forcing users to define a color scheme when they'd want to use only the package manager? Is there a reason why this behaviour is marked "not planned"

lbonn added a commit to lbonn/lazy.nvim that referenced this issue Jan 16, 2024
This gives the option to not override default colorscheme during plugin
installation by using the configuration:

```
{
    install = {
        colorscheme = {},
    },
}
```

If the user specifies a scheme or keeps the default, we will fall back
to 'habamax' as before.
lbonn added a commit to lbonn/lazy.nvim that referenced this issue Jan 20, 2024
Remove default to habamax to work correctly with default colorscheme
(folke#713)
@Johnson1s
Copy link

10a50c39-6cb3-43cf-bb30-d9e4a907a0fa

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants