fix: Python parser error message with '*exept'
This commit is contained in:
@@ -4,6 +4,10 @@ return {
|
|||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
config = function()
|
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")
|
local ok, configs = pcall(require, "nvim-treesitter.configs")
|
||||||
if ok then
|
if ok then
|
||||||
configs.setup({
|
configs.setup({
|
||||||
|
|||||||
Reference in New Issue
Block a user