zaldih / themery.nvim

A colorscheme picker with live preview and persistence for neovim ✨
https://imzaldih.com/en/post/how-to-change-neovim-colorscheme-with-themery/
GNU General Public License v3.0
207 stars 8 forks source link

Changing colorscheme looses syntax highlight #31

Open goeil opened 3 months ago

goeil commented 3 months ago

Your plugin is fantastic, I like it and proposes everything I need. The API rocks.

Meanwhile, when the plugin is active, I loose the syntax highlight of files loaded by ftdetect / ftplugin (I'm not sure which one).

Is there a way to refresh the ftdetect process after changing theme with setThemeByName or setThemeByIndex ? Should I use the after or globalAfter you provide?

zaldih commented 1 month ago

Thank you very much for your comment! I'm happy you found it useful.

I don't really know, but I'm going to look into it. I hope someone can share something!