Closed jdhao closed 2 years ago
Hey @jdhao! I think that this is related to this neovim issue: https://github.com/neovim/neovim/pull/16348 Vimscript highlighting does not seem to be injected correctly for me too.
Is the vim.cmd
contents highlighted correctly as vimscript for you?
@JoosepAlviste Nope, the viml inside vim.cmd is highlighted as string.
So https://github.com/neovim/neovim/pull/16348 is merged. Now this will work as expected :)
Yep, this seems to work for me as well now. I'll close this for now but feel free to comment if it's not fixed for you for some reason @jdhao
okay, thanks for the notice. I will try it ASAP.👍
I am using nvim 0.6.0 release. I have installed nvim-treesitter (lua, viml parsers are installed), commentary.vim, and this plugin.
This is my config for treesitter:
When commenting viml inside lua, my test code is:
the comment string is still
--
, not"
, is this supported or am I doing it wrong?