treesitter: use stable version
This commit is contained in:
@@ -1,13 +1,12 @@
|
|||||||
return {
|
return {
|
||||||
"nvim-treesitter/nvim-treesitter",
|
"nvim-treesitter/nvim-treesitter",
|
||||||
branch = "master",
|
|
||||||
build = ":TSUpdate",
|
build = ":TSUpdate",
|
||||||
event = { "BufReadPost", "BufNewFile" },
|
event = { "BufReadPost", "BufNewFile" },
|
||||||
config = function()
|
config = function()
|
||||||
-- Ensure nvim-treesitter queries are preferred over runtime queries
|
-- Ensure nvim-treesitter queries are preferred over runtime queries
|
||||||
-- This fixes the "except*" syntax error with updated parsers
|
-- This fixes the "except*" syntax error with updated parsers
|
||||||
vim.opt.runtimepath:prepend(vim.fn.stdpath("data") .. "/lazy/nvim-treesitter")
|
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({
|
||||||
@@ -27,9 +26,12 @@ return {
|
|||||||
"markdown",
|
"markdown",
|
||||||
"markdown_inline",
|
"markdown_inline",
|
||||||
},
|
},
|
||||||
highlight = { enable = true },
|
highlight = {
|
||||||
|
enable = true,
|
||||||
|
-- Disable additional_vim_regex_highlighting to avoid conflicts
|
||||||
|
additional_vim_regex_highlighting = false,
|
||||||
|
},
|
||||||
indent = { enable = true },
|
indent = { enable = true },
|
||||||
folding = { enable = true },
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
|
|||||||
Reference in New Issue
Block a user