-
Notifications
You must be signed in to change notification settings - Fork 280
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
neovim-git 缺少 tree-sitter parser 依赖 #3731
Comments
是说 |
二者都不带,但 CMake Warning:
Manually-specified variables were not used by the project:
USE_BUNDLED 另外还想请问一下有没有成功复现问题描述里 |
是的,我复现了。 简单搜索了一下,似乎 nightly 正处在一个默认启用 treesitter 的过渡阶段(也或者是 nightly 总是强制默认用 tree-sitter)。 总之官方不对这个问题提供支持:neovim/neovim#26746 (comment) |
这个问题可以在打包的时候解决,也就是之前提到的构建时启用 parser 的 bundle,把默认启用的 vim / lua / c / markdown 等 parser 都给打包了,亲测有效,可以解决 bug。 或者也可以尝试添加对 |
问题类型 / Type of issues
受影响的软件包 / Affected packages
请在此补充说明。
Please describe in detail here.
neovim-git
在构建时指定了USE_BUNDLE=OFF
, 构建出来的nvim
不含任何 treesitter parser,但runtime
中许多配置都默认了tree-sitter-lua
/tree-sitter-bash
/tree-sitter-c
等 parser 已经被安装,比如ftplugin/lua.lua
这导致使用
nvim
打开对应文件时找不到 parser,报错如下一种可能的解决方案是启用 tree-sitter parser 的 bundled 依赖,构建过程如下 (ref)
The text was updated successfully, but these errors were encountered: