vim-indentguides
vim-indentguides copied to clipboard
Option to disable modification of concealcursor
The plugin sets concealcursor
to inc
to make the indents also visible in the insertmode. This however can make other plugins like vimwiki unusable or at least change their behavior.
It's currently not possible to change this since vim-indentguides overwrites values defined in vimrc or other plugins.
Please provide a way to disable this by the user (vimrc) and other plugins.
It also breaks conceallevel
for me. Was wondering about missing quotes in json - turns out conceallevel was set to 2 and couldn't be changed via .vimrc. Had to remove the plugin.
:verbose conceallevel?
conceallevel=2
Last set from ~/.vim/bundle/vim-indentguides/plugin/indentguides.vim
Broke my neovim and I was really wondering what happened. Putting it at least in the reeadme would help. Also, if it is possible to not set the concealcursor variable to inc, it would be good as it breaks a lot of other vim plugins like vimtex.
So the only solution is to remove vim-indenguides
? I loose inden guides when I set conceallevel=0
, so it's either one or the other?
I created a friendly fork and a PR (#22) where I changed this behavior to be less surprising and changeable.
However:
So the only solution is to remove
vim-indenguides
? I loose inden guides when Iset conceallevel=0
, so it's either one or the other?
The plugin is based on the conceallevel (and I don't think that vim/neovim have other features that would enable such a plugin). So yes, you need to have conceallevel
set to 1
or 2
to see the indentguides. The only alternative you have is to stop whatever is setting up conceals that you dislike.
I don't like neovim package default JSON syntax concealing quotes. I did my own setlocal conceallevel=0
inside an after/ftplugin/json.vim
, however it didn't work. Somehow the setting from indentguides takes precedence and I loss my quotes in JSON files.
Gonna try your plugin fork anyway...
Update after trying the fork: Nope, even when I have set conceallevel the plugin takes precedence. Maybe it's not enough having my setting under after/ftplugin
, maybe I need something else to get precedence over plugin setting
I am having the same issue: the plugin forces the conceallevel
and it seems hard to control; even by specifying otherwise in the .vimrc
, the plugin tends to have precedence on other commands. It would be convenient to have a way to at least control the option from outside (at the moment I have to remove the plugin as it causes more harm than good).