brenoprata10 / nvim-highlight-colors

Highlight colors for neovim
696 stars 32 forks source link

Add opts to disable highlights for specific filetypes #96

Closed rachartier closed 5 months ago

rachartier commented 5 months ago

Hello,

I've added an exclude option in the setup.

This option acts as a filter to exclude specific file types, such as lazy, notify, and alpha. The implementation is straightforward: it checks if the user has specified any file types to exclude, and if the current file type matches one of these, it disables highlights for the active buffer.

If anything needs to be changed, do not hesitate to tell me.

Thanks

mehalter commented 5 months ago

This is awesome! Another option we might want is to also disable based on buftype as well as filetype. That way the user could easily add like nofile buffer type to disable highlighting for non-file buffers