nvim-treesitter icon indicating copy to clipboard operation
nvim-treesitter copied to clipboard

`indent.branch` not working properly

Open lucario387 opened this issue 2 years ago • 0 comments

Describe the bug

Like the title describe

To Reproduce

  1. Create a test.html file with the following code
<html>
  <body>
</html>
  1. On line 2, press o</body>

Expected behavior

Expect </body> to get dedented to the same level as <body>

Output of :checkhealth nvim-treesitter

nvim-treesitter: require("nvim-treesitter.health").check()

Installation ~
- OK `tree-sitter` found 0.20.8 (d4c1bf7ce78051b7f4a381d1508d68928512ed5f) (parser generator, only needed for :TSInstallFromGrammar)
- OK `node` found v18.16.1 (only needed for :TSInstallFromGrammar)
- OK `git` executable found.
- OK `cc` executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
  Version: cc (GCC) 13.2.1 20230801
- OK Neovim was compiled with tree-sitter runtime ABI version 14 (required >=13). Parsers must be compatible with runtime ABI.

OS Info:
{
  machine = "x86_64",
  release = "6.5.4-arch2-1",
  sysname = "Linux",
  version = "#1 SMP PREEMPT_DYNAMIC Thu, 21 Sep 2023 11:06:39 +0000"
} ~

Parser/Features         H L F I J
  - html                ✓ ✓ ✓ ✓ ✓

  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} ~

Output of nvim --version

NVIM v0.10.0-dev-8195c1800
Build type: Release
LuaJIT 2.1.1695409640
Run "nvim -V1 -v" for more info

Additional context

This also happens to #5437 and was first reported on nvim-treesitter matrix server

lucario387 avatar Sep 25 '23 07:09 lucario387