From 7f7873536d67735b792c83417a36a980ffae325f Mon Sep 17 00:00:00 2001 From: Marcelo Jacobus Date: Fri, 15 Aug 2025 10:26:38 -0300 Subject: [PATCH] Enable treesitter-context --- lua/plugins/treesitter-context.lua | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lua/plugins/treesitter-context.lua b/lua/plugins/treesitter-context.lua index 5cbf2de..54cc849 100644 --- a/lua/plugins/treesitter-context.lua +++ b/lua/plugins/treesitter-context.lua @@ -1,7 +1,10 @@ return { "nvim-treesitter/nvim-treesitter-context", - -- event = "LazyFile", - opts = { mode = "cursor", max_lines = 3 }, + event = "BufReadPost", + opts = { + mode = "topline", -- default is 'cursor' + max_lines = 3, + }, keys = { { "ut",