kanagawa.nvim icon indicating copy to clipboard operation
kanagawa.nvim copied to clipboard

Question about compiling / KanagawaCompile

Open kaddkaka opened this issue 1 year ago • 1 comments

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?

kaddkaka avatar Oct 07 '23 18:10 kaddkaka

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.

h3xOo avatar Jan 23 '24 21:01 h3xOo