Skip to content
This repository has been archived by the owner on Jul 29, 2023. It is now read-only.

indentLine not working within folds #340

Open
neeerp opened this issue Jan 3, 2021 · 0 comments
Open

indentLine not working within folds #340

neeerp opened this issue Jan 3, 2021 · 0 comments

Comments

@neeerp
Copy link

neeerp commented Jan 3, 2021

I was having trouble getting the plugin working. I noticed that if I made a bunch of spaces in a new line in any file, I'd get indent guides, however spaces that were automatically created (e.g. auto indenting in a scope) was not working.

After commenting out various parts of my init.vim in/out, my issue turned out to be related to the foldmethod setting. I had it set to foldmethod=syntax, and this would cause indentLine to stop working properly (even though I had foldlevel=99 forcing my folds open by default, indentLine would still break).

From the looks of it, it looks like folds aren't compatible with indentLine (at least with the current nightly version of nvim)... I disabled all of my configs beside foldmethod=syntax and indentLine (no other plugins being loaded) and still encounter the problem. I managed to get indentLine to work by setting foldmethod=manual (which is the default setting), however creating any folds manually would also cause indentLine to not work within the fold.

For anyone reading this and applying my fix, make sure you're clearing your views folder to get rid of any saved folds if you are using views.

Originally posted by @neeerp in #59 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant