Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use neovim core treesitter API instead of nvim-treesitter plugin #32

Merged
merged 1 commit into from
Nov 21, 2023

Conversation

silvercircle
Copy link
Contributor

Hi,

Can you please look into this PR.

It uses Neovim's core Treesitter API instead of the nvim-treesitter plugin. The motivation behind this is that nvim-treesitter will be rewritten (see: https://github.com/nvim-treesitter/nvim-treesitter/tree/main) and this will break the outline plugin because nvim-treesitter.parsers.get_parser() will be removed.

This should work with Neovim 0.9 or later. Maybe it would make sense to wrap this around an option.

Copy link
Owner

@hedyhli hedyhli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should work with Neovim 0.9 or later. Maybe it would make sense to wrap this around an option.

An option is not needed since we can check nvim version from lua, but anyway, seems like this works with Neovim 0.7. Thanks!

@hedyhli hedyhli merged commit a21a17c into hedyhli:main Nov 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants