xiyaowong / transparent.nvim

Remove all background colors to make nvim transparent
868 stars 24 forks source link

feat: add `on_clear` and user event `TransparentClear` #70

Closed mehalter closed 2 months ago

mehalter commented 3 months ago

This adds both a post_hook option to the configuration options as well as a TransparentClear user autocommand event which provides the user 2 methods for executing code after highlight groups are cleared.

Resolves #62

Note: this also has a 2nd commit that removes the use of tbl_islist in newer versions of Neovim. This function is now deprecated, so just future proofs the existing code slightly.

mehalter commented 2 months ago

Thanks @xiyaowong ! Works beautifully!