From ab5a79631c8cd7e1d1cfe616a11091beff7d1ce8 Mon Sep 17 00:00:00 2001 From: Simon Walker Date: Tue, 30 Apr 2024 16:33:39 +0100 Subject: [PATCH] Add treesitter context back --- home/nixvim/default.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/home/nixvim/default.nix b/home/nixvim/default.nix index a97c85ba..f04f388b 100644 --- a/home/nixvim/default.nix +++ b/home/nixvim/default.nix @@ -284,6 +284,15 @@ in { "gitcommit" ]; }; + treesitter-context = { + enable = true; + maxLines = 3; + onAttach = '' + function(buf) + vim.cmd.highlight({ "TreesitterContext", "guibg=#363c4a" }) + end + ''; + }; treesitter-textobjects = { enable = true; };