generated from nvim-treesitter/module-template
-
Notifications
You must be signed in to change notification settings - Fork 231
Open
Description
Describe the bug
can not use swap
feature on nightly
To Reproduce
Steps to reproduce the behavior:
init.lua:
require("nvim-treesitter.configs").setup({
textobjects = {
swap = {
enable = true,
swap_next = {
["<leader>a"] = "@parameter.inner",
},
swap_previous = {
["<leader>A"] = "@parameter.inner",
},
},
},
})
a.lua:
print(1, 2)
- run
nvim a.lua
- move cursor to
1
- press
<leader>a
Expected behavior
swap 1
and 2
Output of :checkhealth nvim-treesitter
==============================================================================
nvim-treesitter: 1 ⚠️
Installation ~
- ⚠️ WARNING
tree-sitter
executable not found (parser generator, only needed for :TSInstallFromGrammar, not required for :TSInstall)
- ✅ OK
node
found v24.1.0 (only needed for :TSInstallFromGrammar)
- ✅ OK
git
executable found.
- ✅ OK
cc
executable found. Selected from { vim.NIL, "cc", "gcc", "clang", "cl", "zig" }
Version: cc (GCC) 15.1.1 20250425
- ✅ OK Neovim was compiled with tree-sitter runtime ABI version 15 (required >=13). Parsers must be compatible with runtime ABI.
OS Info:
{
machine = "x86_64",
release = "6.14.10-arch1-1",
sysname = "Linux",
version = "#1 SMP PREEMPT_DYNAMIC Wed, 04 Jun 2025 18:52:35 +0000"
} ~
Parser/Features H L F I J
- bash ✓ ✓ ✓ . ✓
- c ✓ ✓ ✓ ✓ ✓
- commonlisp ✓ ✓ ✓ . ✓
- cpp ✓ ✓ ✓ ✓ ✓
- css ✓ . ✓ ✓ ✓
- csv ✓ . . . .
- diff ✓ . ✓ . ✓
- git_rebase ✓ . . . ✓
- gitcommit ✓ . . . ✓
- go ✓ ✓ ✓ ✓ ✓
- html ✓ ✓ ✓ ✓ ✓
- ini ✓ . ✓ . ✓
- java . ✓ ✓ ✓ ✓
- javascript ✓ ✓ ✓ ✓ ✓
- json ✓ ✓ ✓ ✓ .
- lua ✓ ✓ ✓ ✓ ✓
- markdown . . ✓ ✓ ✓
- markdown_inline . . . . ✓
- python ✓ ✓ ✓ ✓ ✓
- query ✓ ✓ ✓ ✓ ✓
- rust ✓ ✓ ✓ ✓ ✓
- scheme ✓ . ✓ . ✓
- toml ✓ ✓ ✓ ✓ ✓
- vim ✓ ✓ ✓ . ✓
- vimdoc ✓ . . . ✓
- xml ✓ ✓ ✓ ✓ ✓
- yaml ✓ ✓ ✓ ✓ ✓
- zathurarc ✓ . . . ✓
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.12.0-dev-535+g811e12cebc
Build type: RelWithDebInfo
LuaJIT 2.1.1744317938
Run "nvim -V1 -v" for more info
Additional context
works on 0.11.2
marcoSven
Metadata
Metadata
Assignees
Labels
No labels