Closed milisims closed 3 years ago
As it happens, was also asked yesterday, https://github.com/rktjmp/lush.nvim/issues/29
Lush is a neovim plugin that happens to have some vim compatibility, basically by accident.
Why I am hesitant to just throw the option in (as you say, it's not a hard code problem) is sort of two fold:
That's not to say no, just why I feel a bit uncomfortable adding it... Obviously it would be useful to people so it will probably appear in some form.
The readme definitely needs a warning about blend options right now at any rate.
Huh, sorry for missing that! I think I just searched for 'compile'.
You do make really good points about why not to include it. For me, it would have been helpful to have:
That way you don't need to extend the API, and I would have known what I needed to do. Filtering some strings pretty programming 101, so the user should be able to understand what to do from there.
Didn't mean to close the issue, sorry!
Likely to just include a strip option to compile.
lush.compile(spec, {
strip = {"gui", "blend"}
})
That way I can pretend it isn't for Vim :eyes:
strip
drop
remove
dump
dont_include
exclude
Probably exclude. Maybe exclude_keys.
Fixed in aaa9a4c77330ea2a69a88d8e7950edeb01e9f359
You may still need to do some manual touch ups. compile
won't include code to clear existing highlights (even though that was listed as an option, it was an error in the docs) because it relies on checking some vim-runtime settings that I don't want to pollute down to that layer.
This really only needs to be done if you're hot-reloading like :Lushify
does, so it is likely not a problem if you're targeting vim.
See instructions, specifically compiles
exclude_keys
option.
Hi there, this is an extremely cool plugin!
Would you consider adding an option to
lush.compile
that forces vim-friendly settings? As far as I know, that would just be the removal of theblend
option. I use this function to update my colorscheme:Evidently, it's not a big complication to add this code myself as the user, but it was a bit tricky to understand where the issue was and why my colorscheme was causing issues on loading in vim.