From 04a589a130fefd168289dde6a0ea13349e78977b Mon Sep 17 00:00:00 2001 From: Alexander Gehrke Date: Sat, 27 Jul 2024 01:04:02 +0200 Subject: [PATCH] Add binding to toggle context view --- lua/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index ae1daff..a85d4c3 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -135,6 +135,7 @@ return { keys = { -- stylua: ignore start { "[c", function() require("treesitter-context").go_to_context() end, desc = "Go to context start", }, + { "c", function() require("treesitter-context").toggle() end, desc = "Toggle context view", }, -- stylua: ignore end }, opts = { enable = true },