From f40432b44025c76a7f8096497ae9335e6007a244 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sun, 5 Nov 2023 13:48:42 -0600 Subject: [PATCH] refactor(nvim): only allow 3 lines of TS context to show --- dots/.config/nvim/lua/plugins/configs/treesitter.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dots/.config/nvim/lua/plugins/configs/treesitter.lua b/dots/.config/nvim/lua/plugins/configs/treesitter.lua index 7d610a1e..1de4ede7 100644 --- a/dots/.config/nvim/lua/plugins/configs/treesitter.lua +++ b/dots/.config/nvim/lua/plugins/configs/treesitter.lua @@ -31,7 +31,9 @@ return { "nvim-treesitter/nvim-treesitter", }, config = function() - require("treesitter-context").setup({}) + require("treesitter-context").setup({ + max_lines = 3 + }) vim.cmd.TSContextEnable() end, },