Do concealing in syntax file only if enabled. #41
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I installed indentLine plugin, and got issues like mentioned in issue #23.
Since setting
let g:vim_json_syntax_conceal = 0
andlet g:indentLine_noConcealCursor=""
orlet g:indentLine_noConcealCursor="nc"
didn't work out properly, i noticed that when conceal is disabled manually (set to 0), syntax file still does concealing. Only the conceal cursor and level are not handled in that case. IndentLine sets conceallevel to 2, which automatically enables it for json, and i believe when someone disables the concealing manually expects not to have any of those functionality enabled, even when concealcursor/conceallevel is changed.
This is fixing the problem. I'm just not sure if it's good practice to use variables in syntax files.