lukas-reineke/indent-blankline.nvim

Only enabled on few filetypes

eeeXun opened this issue · 4 comments

Problem

I know there is ibl.config.exclude.filetypes. But I want to disable all filetypes and enable on few filetypes like python.

To achieve this, I have to provide a lot of filetypes in ibl.config.exclude.filetypes. I don't think this makes sense.

Expected behavior

Provide the setting ibl.config.include.filetypes. When setup this, all filetypes will be disabled. Only the list in this setting will be enabled.

You can use :help ibl.hooks.cb.active() for this. Read up on hooks with :help ibl.hooks.