vim-indentguides icon indicating copy to clipboard operation
vim-indentguides copied to clipboard

Option to disable modification of concealcursor

Open Nudin opened this issue 5 years ago • 6 comments

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.

Nudin avatar Aug 14 '19 12:08 Nudin

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

vogler avatar Aug 14 '19 14:08 vogler

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.

nova-nowiz avatar Dec 22 '19 14:12 nova-nowiz

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?

fernandocanizo avatar Mar 03 '20 19:03 fernandocanizo

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 I set 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.

Nudin avatar Mar 05 '20 18:03 Nudin

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

fernandocanizo avatar Mar 06 '20 13:03 fernandocanizo

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).

gennaro-tedesco avatar Nov 04 '20 23:11 gennaro-tedesco