tyru / caw.vim

Vim comment plugin: supported operator/non-operator mappings, repeatable by dot-command, 300+ filetypes
379 stars 48 forks source link

Enable uncomment when nvim-treesitter is used #152

Closed hexium310 closed 4 years ago

hexium310 commented 4 years ago

Resolve #149 This PR supports uncommenting when nvim-treesitter is used. The syntaxes of Vim that use :syntax is not used in Treesitter, so Comment is not defined and uncommenting fails. In this PR, the syntaxes are checked by Treesitter.

ref: https://github.com/neovim/neovim/blob/6312792d8a6a7d293661d33d440343d4cc6e0e6e/runtime/doc/treesitter.txt

tyru commented 4 years ago

Thanks

gegoune commented 3 years ago

Hi @tyru, this is still the case for me (with treesitter on latest nightly Neovim) for javascript block in Vue file - toggle just adds another comment gcc). I am using 'Shougo/context_filetype.vim'. Would you like me to open another issue?