treesitter#2036 changed the way to configure treesitter. adjusted config for this

This commit is contained in:
2026-02-05 17:37:01 +01:00
parent f0757d76b9
commit dc6dffa481

View File

@@ -4,7 +4,7 @@ return {
build = ':TSUpdate',
event = { "BufReadPost", "BufNewFile" },
config = function()
require("nvim-treesitter.configs").setup {
require("nvim-treesitter").setup {
ensure_installed = {
"lua",
"typescript",
@@ -26,14 +26,7 @@ return {
},
indent = {
enable = true
}
}
end,
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",
config = function()
require("nvim-treesitter.configs").setup {
},
textobjects = {
select = {
enable = true,
@@ -54,7 +47,10 @@ return {
}
}
}
end
end,
dependencies = {
{
"nvim-treesitter/nvim-treesitter-textobjects",
},
}
},