lukas-reineke / indent-blankline.nvim

Indent guides for Neovim
MIT License
4.14k stars 102 forks source link

Only enabled on few filetypes #892

Closed eeeXun closed 4 months ago

eeeXun commented 4 months ago

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.

lukas-reineke commented 4 months ago

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