From 1ddaa5bce22df6367d303253ee0a11cb1722f0aa Mon Sep 17 00:00:00 2001 From: Mathias Schneider Date: Wed, 8 Apr 2026 09:15:00 +0200 Subject: [PATCH] fix: Python parser error message with '*exept' --- term/.config/nvim/lua/plugins/treesitter.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/term/.config/nvim/lua/plugins/treesitter.lua b/term/.config/nvim/lua/plugins/treesitter.lua index 10694c9..330f4ec 100644 --- a/term/.config/nvim/lua/plugins/treesitter.lua +++ b/term/.config/nvim/lua/plugins/treesitter.lua @@ -4,6 +4,10 @@ return { build = ":TSUpdate", event = { "BufReadPost", "BufNewFile" }, config = function() + -- Ensure nvim-treesitter queries are preferred over runtime queries + -- This fixes the "except*" syntax error with updated parsers + vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/lazy/nvim-treesitter") + local ok, configs = pcall(require, "nvim-treesitter.configs") if ok then configs.setup({