Skip to content

Reloading plugins after changing colorscheme #631

Answered by folke
idr4n asked this question in Q&A
Discussion options

You must be logged in to vote

As I pointed out on the issue:
@idr4n you should not use reload for this purpose, that makes no sense.
For lualine, you can just change the theme I believe.

Other plugins typically have an autocmd that triggers on colorscheme changes. If not that should be fixed in those plugins.

Also, for proper reloading, complex plugins would eventually have to implement a deactivate function. Reloading treesitter sounds like a really bad idea for now.

And why do you even reload tokyonight?

Your code makes no sense at all.

reload is NOT the way to go here

Replies: 1 comment 1 reply

Comment options

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

Answer selected by folke
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants