[nvim插件]tree-sitter

[nvim插件]tree-sitter

tree-sitter

  1. neovim-treesitter可以用例做语法高亮
  2. 代码折叠
  3. 代码格式化
  4. 代码重构
  5. 代码导航
  6. 自动补全
  7. Linting和静态分析
  8. 文本对象
  9. 增量选择
  10. 多语言支持

依赖安装

  • 安装treesitter方法1:
1
npm install tree-sitter-cli
  • 方法2,直接下载二进制文件:
1
2
https://github.com/tree-sitter/tree-sitter/releases/tag/v0.22.6
wget https://github.com/tree-sitter/tree-sitter/releases/download/v0.22.6/tree-sitter-linux-x64.gz

相关资源

  • github地址:https://github.com/nvim-treesitter/nvim-treesitter