From 8bbaa0360f3db283578c94eda22a018507889c61 Mon Sep 17 00:00:00 2001 From: James Santucci Date: Wed, 13 Nov 2024 11:38:04 -0800 Subject: [PATCH] Add and configure treesitter-context plugin --- attrs/vimPlugins.nix | 1 + dotfiles/neovim/lua/treesitter.lua | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/attrs/vimPlugins.nix b/attrs/vimPlugins.nix index 61b44a8..0c81876 100644 --- a/attrs/vimPlugins.nix +++ b/attrs/vimPlugins.nix @@ -55,6 +55,7 @@ with vimPlugins; nvim-lspconfig nvim-metals nvim-tree-lua + nvim-treesitter-context nvim-web-devicons plenary-nvim purescript-vim diff --git a/dotfiles/neovim/lua/treesitter.lua b/dotfiles/neovim/lua/treesitter.lua index ef9d70b..f71fcfe 100644 --- a/dotfiles/neovim/lua/treesitter.lua +++ b/dotfiles/neovim/lua/treesitter.lua @@ -17,3 +17,8 @@ require("nvim-treesitter.configs").setup { disable = {}, }, } + +require("treesitter-context").setup { + max_lines = 3, + line_numbers = true +}