From 1579c71beb955f4a200d684a97a62b0370699b21 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Fri, 10 May 2024 22:38:29 -0500 Subject: [PATCH] Revert 'refactor(nvim): remove `nvim-treesitter-context`' --- .../nvim/lua/plugins/configs/treesitter.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) 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 = {