shellRaining / hlchunk.nvim

This is the lua implementation of nvim-hlchunk, you can use this neovim plugin to highlight your indent line and the current chunk (context) your cursor stayed
MIT License
472 stars 29 forks source link

Allow excluded filetypes for other modules besides `chunk` #74

Closed miversen33 closed 9 months ago

miversen33 commented 9 months ago

Is your feature request related to a problem? Please describe. The Chunk module has an option that can be passed on setup to exclude filetypes. This is great but is apparently only an option for the chunk module. In my particular case, I don't want the Blank module (or indent) to work on lazy filetypes

image

Intuitively I figured I could just provide the same array I use for the chunk exclusion in the configuration for blank but it seems it doesn't work. I haven't dug into the code but I suspect that option just isn't available for that module. If you are open to it, I am fine submitting a PR to accomplish this behavior :)

miversen33 commented 9 months ago

Disregard, this was happening due to a misconfiguration on my part (I was passing in a 1 dimensional table of strings when the exclude_filetypes param was expecting a 2 dimensional table).

You're awesome and this is quickly becoming a great plugin :)