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

Option to disable modification of concealcursor #17

Open
Nudin opened this issue Aug 14, 2019 · 6 comments
Open

Option to disable modification of concealcursor #17

Nudin opened this issue Aug 14, 2019 · 6 comments

Comments

@Nudin
Copy link
Contributor

Nudin commented Aug 14, 2019

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.

@vogler
Copy link

vogler commented Aug 14, 2019

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 added a commit to vogler/dotfiles that referenced this issue Aug 14, 2019
see thaerkh/vim-indentguides#17
removed broken views with:
  cd ~/.local/share/nvim/view && ag 'conceallevel=2' -l | xargs rm
@nova-nowiz
Copy link

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.

@fernandocanizo
Copy link

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?

@Nudin
Copy link
Contributor Author

Nudin commented Mar 5, 2020

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.

@fernandocanizo
Copy link

fernandocanizo commented Mar 6, 2020

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

@gennaro-tedesco
Copy link

gennaro-tedesco commented Nov 4, 2020

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

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

5 participants