-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Remove nvim-treesitter, use nvim 0.9+ core utilities #80
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the great PR! It's nice to see that all the necessary parts are actually available in Neovim core now. We can get rid of quite a lot of unnecessary code 😄
I found one issue and had a couple other thoughts on how to improve this a bit.
241d289
to
05f632e
Compare
This looks great now! Just the Stylua check to fix and the deprecation message wording, and then we can merge it 🎉 Thanks for taking care of the fixes and improvements! |
DEPRECATED context_commentstring nvim-treesitter module, use require('ts_context_commentstring').setup {} instead. With 0.9 being the minimal version for this plugin, nvim-treesitter is quite literally a fifth wheel for its functionality. It installs and updates parsers, but everything this plugin needs to operate afterwards is available in the core `vim.treesitter` utilities set. I also borrowed a test setup from aerial.nvim, to create a minimal setup launcher bash script that truly isolates minimal config from main user configuration.
Sh is handled by bash tree-sitter parser. `vim.treesitter.language.get_lang('sh')` returns `bash`. This change makes this plugin work with both sh and bash files.
Thanks for the great work on this! It feels great to get rid of some useless code 🎉 I also created an issue with the breaking changes and mentioned this there: #82 (comment) and updated the integrations wiki: https://github.com/JoosepAlviste/nvim-ts-context-commentstring/wiki/Integrations. Hopefully this won't be too big of a pain for users 🤞 |
…ommentstring deprecation message See JoosepAlviste/nvim-ts-context-commentstring#80 for more context
With 0.9 being the minimal version for this plugin, nvim-treesitter is quite literally a fifth wheel for its functionality. It installs and updates parsers, but everything this plugin needs to operate afterwards is available in the core
vim.treesitter
utilities set.I also borrowed a test setup from aerial.nvim, to create a minimal setup launcher bash script that truly isolates minimal config from main user configuration.