From 46a1f0772bcbe40122f7065c96c5aeb3020e24f8 Mon Sep 17 00:00:00 2001 From: "s0wlz (Matthias Puchstein)" Date: Fri, 10 Apr 2026 00:15:53 +0200 Subject: [PATCH] nvim: add tree-sitter-manager.nvim for parser management on Neovim 0.12 --- dot_config/nvim/lua/plugins/treesitter.lua | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/dot_config/nvim/lua/plugins/treesitter.lua b/dot_config/nvim/lua/plugins/treesitter.lua index 1ff01cf..e769271 100644 --- a/dot_config/nvim/lua/plugins/treesitter.lua +++ b/dot_config/nvim/lua/plugins/treesitter.lua @@ -1,11 +1,21 @@ --- nvim-treesitter dropped: archived, incompatible with Neovim 0.12 API. --- Neovim 0.12 handles treesitter natively (highlighting, folding, injections). --- Bundled parsers: bash, c, lua, markdown, markdown_inline, python, query, --- regex, vim, vimdoc. --- Additional parsers (rust, ts, java, etc.): install via AUR tree-sitter-* or --- tree-sitter-cli: https://github.com/tree-sitter/tree-sitter +-- Neovim 0.12 handles treesitter natively. tree-sitter-manager provides +-- parser installation (replaces archived nvim-treesitter). Requires: +-- tree-sitter CLI, git, gcc/clang (system-wide) return { + { + "romus204/tree-sitter-manager.nvim", + cmd = "TSManager", + opts = { + ensure_installed = { + "rust", "typescript", "javascript", "svelte", + "java", "latex", "yaml", "toml", "html", "css", + "jinja", "json", + }, + }, + }, + + -- Textobjects: pairs, quotes, args, brackets — no treesitter dependency { "echasnovski/mini.ai",