Closed ritwikvd closed 2 years ago
Yes, this should work without any problems.
Just to be sure, Can you check whether the Lua heredoc inside vim is actually recognised as lua?
@numToStr I'm sorry, how do I do that?
I'm sorry, how do I do that?
@ritwikvd You can use the TSPlaygroundToggle
command from https://github.com/nvim-treesitter/playground after that, press I
in the syntax-tree buffer
And also, I've already checked and I think Lua heredoc is not supported by the viml parser https://github.com/vigoux/tree-sitter-viml
Oh your post reminded me that I didn't have the vim parser installed in the first place. It's working fine after I got that. Maybe that could be added as a note somewhere in the readme for future users who might be novices like me :)
thanks a ton for the very quick responses and for making this great plugin!
Added the above config after installing
comment
andJoosepAlviste/nvim-ts-context-commentstring
. jsx is working fine in .tsx files but trying to comment insidelua << EOF {...} EOF
is giving me the vimscript commentstring"
and not lua's--
. I tried with the cursor at multiple different locations, no difference.Is there some additional configuration involved; I was of the opinion that embedded lua worked out of the box and only jsx/tsx was problematic and fixed with the above pre-hook.
Entire init.vim can be viewed here if required: https://github.com/ritwikvd/dotfiles/blob/main/init.vim