diff --git a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua index c973f9e6..24173df4 100644 --- a/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/users/price/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -25,8 +25,20 @@ return { }, }, { - "PriceHiller/nvim-ts-autotag", - branch = "fix/close-xml-tags", + "nvim-treesitter/nvim-treesitter-context", + event = { "BufReadPre", "BufNewFile" }, + dependencies = { + "nvim-treesitter/nvim-treesitter", + }, + config = function() + require("treesitter-context").setup({ + max_lines = 3, + }) + vim.cmd.TSContextEnable() + end, + }, + { + "windwp/nvim-ts-autotag", dependencies = { "nvim-treesitter/nvim-treesitter" }, event = { "BufReadPre", "BufNewFile" }, opts = {