This repository has been archived by the owner on May 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
vim-indentguides breaks yaml syntax highlighting #18
Comments
Me too. Have an issues with yaml.ansible |
+1 |
1 similar comment
+1 |
From what I can tell, the line causing this issue is vim-indentguides/plugin/indentguides.vim Line 27 in 3152f3a
My best guess for now would be that yaml syntax (and https://github.com/cespare/vim-toml which is affected as well by this) condiders whitespace at the start of a line as part of a match they are trying to make, when they shouldn't and are affected by the whitespace being in a pattern match already |
Adding yaml and any other affected syntax to the ignore is what I'm doing for now. let g:indentguides_ignorelist = ['yaml', 'toml'] It's not ideal because I lose indent guides on an indent dependent syntax but it's better than no syntax highlighting. Also I don't think this plugin can punt the issue upstream, since these issue syntax definitions are bundled with vim (at least for me). Someone will have to have some sort of clever solution in this plugin. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
I recently started using this plugin (and love it), but I noticed that for some reason when I have this plugin enabled it breaks the syntax highlighting in yaml files.
indentguides enabled:
indentguides disabled:
I thought this might be a neovim-specific issue, but I also see it on vim 8.0.1365.
The text was updated successfully, but these errors were encountered: