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