Closed n10v closed 1 year ago
Just found the issue thanks to your comment here: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/issues/18#issuecomment-886105815
I decreased updatetime to 100 and it started to work 🎉
Maybe we should mention it more explicitly in README? It could save somebody else couple of hours 😅
It worked with Vue files with script lang=ts
, but it didn't work for script lang=js
and style lang=scss
.
Adding 'scss' and 'javascript' to ensure_installed
fixed this issue:
require'nvim-treesitter.configs'.setup {
context_commentstring = {
enable = true,
enable_autocmd = false,
},
-- Add languages to be installed here that you want installed for treesitter
ensure_installed = { 'go', 'lua', 'tsx', 'javascript', 'scss', 'typescript', 'vimdoc', 'vue', 'vim' },
}
Would be great to mentioning in README too 🙏
Hey! Thanks for the ideas!
I've been meaning to take another look at the docs, trying to make the readme simpler and providing the more detailed configuration information in the Vim help docs. I also wanted to move the integrations section to the wiki, and to have an issue template with the minimal config to make it easier for users to report bugs.
Anyways, this encourages me to get started on these improvements, so thanks!
I set up a PR with some improvements: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/pull/63
Could you take a look at it from the perspective of someone setting up the plugin from scratch (mainly the changes in the README)? 🙏
Hey @JoosepAlviste! Thanks for this great plugin, but I can't make work with Vue. When I enter
gcc
, I always get<!-- -->
comment regardless of location of my cursor:My
init.lua
config:NVIM v0.9.0
Would be great if you can help me 🙏