Closed clay-f closed 7 years ago
So is it only with haml files that you're having an issue? No other file types?
Upon opening a haml file, before changing the syntax in the menu, what does the following command output? :echo &filetype
Does adding the following to your .vimrc
file fix the issue? autocmd BufRead,BufNewFile *.haml set ft=haml
oh, yes
echo &filetype
show hamlautocmd BufRead,BufNewFile *.haml set ft=haml
add .vimrc seem make no senseindent-guides config:
let g:indent_guides_start_level = 2
let g:indent_guides_guide_size = 1
let g:indent_guides_enable_on_vim_startup = 1
autocmd BufRead,BufNewFile *.haml set ft=haml
add .vimrc seem make no sense
This command is basically automating the steps you were taking manually to get the indent guides working with haml files. This is a potential work-around, put it in your vimrc and let me know how it goes.
no, add above config , can't work too,
add autocmd BufRead,BufNewFile *.haml set ft=haml
should be autoload work, but somehow it can't work.
the plugin using manual shortcut <leader>ig
need two times would be worked.
<leader>ig
show nothing, (issue may in here ? 😄)<leader>ig
the plugin working. then type <leader>ig
would be shutdown the plugin. i was tried 2 type file: html, haml , both filetype can't auto-work, need manual.
Can you please try the following: autocmd FileType haml :IndentGuidesEnable
Again, this is just a work-around. I suspect another plugin is causing the indent guide highlight groups to be cleared.
OK, found the issue:
plugin conflict ?
Plugin 'gorodinskiy/vim-coloresque'
thanks
Nice :)
I was able to reproduce the problem on my end with gorodinskiy/vim-coloresque
. At some point I'll try to sort this out, but it's possible that the problem is in their repo.
i think that so , ha ha, may their repo problem.
i was open the haml file the 'vim-indent-guides' can't work, but i manual click menu syntax > haml and then will be work, but when i switch another buffer and then back to haml file ,the 'vim-indent-guides' can't work again, must be click haml syntax again, it's would be workd. how does solve it ?
vim version: 8.0.94