fix: Python parser error message with '*exept'
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user