nvim-treesitter: require("nvim-treesitter.health").check()
Installation ~
- WARNING `tree-sitter` executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
- WARNING `node` executable not found (only needed for :TSInstallFromGrammar, not required for :TSInstall)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: Apple clang version 14.0.0 (clang-1400.0.29.202)
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "arm64",
release = "21.6.0",
sysname = "Darwin",
version = "Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:05 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8101"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- cpp ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- fish ✓ ✓ ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- json ✓ ✓ ✓ ✓ .
- lua ✓ ✓ ✓ ✓ ✓
- luadoc ✓ . . . .
- markdown ✓ . ✓ ✓ ✓
- markdown_inline ✓ . . . ✓
- python ✓ ✓ ✓ ✓ ✓
- query ✓ ✓ ✓ ✓ ✓
- rasi ✓ ✓ ✓ ✓ ✓
- ruby ✓ ✓ ✓ ✓ ✓
- rust ✓ ✓ ✓ ✓ ✓
- tsx ✓ ✓ ✓ ✓ ✓
- typescript ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
Legend: H[ighlight], L[ocals], F[olds], I[ndents], In[j]ections
+) multiple parsers found, only one will be used
x) errors found in the query, try to run :TSUpdate {lang} ~
Steps To Reproduce/Bad Parse Tree
open the sample snippet / file below, ie. sample.rb and attempt to collapse just the lambda function inside neovim. on my setup the entire install method is collapsed.
Expected Behavior/Parse Tree
i would expect the lambda function could be folded using the standard zc in normal mode while keeping the rest of the def install method / function open.
Repro
def install
# some foo code here
cmake_prefix_paths = lambda {
[
Formula["doxygen"].prefix
# add additional formula prefixes below
]
}
# some more foo code here
end
Did you check existing issues?
Tree-Sitter CLI Version, if relevant (output of
tree-sitter --version
)not sure
Describe the bug
running
checkhealth
inside neovimSteps To Reproduce/Bad Parse Tree
open the sample snippet / file below, ie.
sample.rb
and attempt to collapse just the lambda function inside neovim. on my setup the entireinstall
method is collapsed.Expected Behavior/Parse Tree
i would expect the lambda function could be folded using the standard
zc
in normal mode while keeping the rest of thedef install
method / function open.Repro