hedyhli / outline.nvim

Code outline sidebar powered by LSP. Significantly enhanced & refactored fork of symbols-outline.nvim.
https://sr.ht/~hedy/outline.nvim
MIT License
543 stars 15 forks source link

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

Closed silvercircle closed 9 months ago

silvercircle commented 9 months ago

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.