lukas-reineke / indent-blankline.nvim

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

fix: set_config #779

Closed Danielkonge closed 10 months ago

Danielkonge commented 10 months ago

This code fixes the problem I mention with ibl.overwrite() in #778. With this bug fix I get the expected behavior mentioned in that issue. (This also closes that issue, since I get the behavior I was asking for.)

lukas-reineke commented 10 months ago

This is wrong, setup and by extension set_config explicitly resets to the default. From the help

setup is idempotent, meaning you can call it multiple times, and each call will reset indent-blankline. If you want to only update the current configuration, use |ibl.update()|.

Also, ibl.overwrite does not call set_config, I'm not sure I understand what your problem is.