From 94de21bc885b496920aecc978babeaac80f53059 Mon Sep 17 00:00:00 2001 From: Tony Grosinger Date: Wed, 29 May 2024 11:18:59 -0700 Subject: [PATCH] Neovim: Add treesitter-context plugin --- nvim/lua/custom/plugins/nvim-treesitter-context.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 nvim/lua/custom/plugins/nvim-treesitter-context.lua diff --git a/nvim/lua/custom/plugins/nvim-treesitter-context.lua b/nvim/lua/custom/plugins/nvim-treesitter-context.lua new file mode 100644 index 0000000..6b3ca4c --- /dev/null +++ b/nvim/lua/custom/plugins/nvim-treesitter-context.lua @@ -0,0 +1,11 @@ +-- Display context that has scrolled off the top of the screen. +-- For example, signature of the current function, or if-case. +-- https://github.com/nvim-treesitter/nvim-treesitter-context +return { + { + 'nvim-treesitter/nvim-treesitter-context', + opts = { + max_lines = 5, + }, + }, +}