rebelot / kanagawa.nvim

NeoVim dark colorscheme inspired by the colors of the famous painting by Katsushika Hokusai.
MIT License
4.33k stars 182 forks source link

Question about compiling / KanagawaCompile #172

Open kaddkaka opened 1 year ago

kaddkaka commented 1 year ago

How does the :KanagawaCompile command and the setup option compile = false option interact? What happens when I run the Compile command manually when this setting is set to false?

NOTE 1: If you enable compilation, make sure to run :KanagawaCompile command every time you make changes to your config.

Does any change to my whole config warrant a recompilation of the colorscheme?

h3xOo commented 10 months ago

Looking at what :KanagawaCompile does (here), it calls load(), which checks config.compile - if it's true, then it runs compiled file, else it runs from config. Same goes for vim.cmd[[colorscheme kanagawa]]. Tl;dr: setting config.compile = false and running :KanagawaCompile will create compiled file, however it'll be ignored.