From 4d6270a9b02a0f3f41ef94a64bf75c557e392792 Mon Sep 17 00:00:00 2001 From: Marty Oehme Date: Fri, 14 Mar 2025 22:42:37 +0100 Subject: [PATCH] nvim: Add treesitter context line maximum number Show a maximum of three context lines at any time. --- nvim/.config/nvim/lua/plugins/treesitter.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nvim/.config/nvim/lua/plugins/treesitter.lua b/nvim/.config/nvim/lua/plugins/treesitter.lua index ca85b6a..50a3edc 100644 --- a/nvim/.config/nvim/lua/plugins/treesitter.lua +++ b/nvim/.config/nvim/lua/plugins/treesitter.lua @@ -5,7 +5,8 @@ return { -- show current cursor context at top of buffer -- improves commenting plugin above by using ts dependencies = { - "nvim-treesitter/nvim-treesitter-context", + -- nice context on top of buffer + { "nvim-treesitter/nvim-treesitter-context", opts = { max_lines = 3 } }, "JoosepAlviste/nvim-ts-context-commentstring", "RRethy/nvim-treesitter-textsubjects", "windwp/nvim-ts-autotag",