diff options
Diffstat (limited to 'ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua')
| -rw-r--r-- | ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua index e8979c8..1daaa54 100644 --- a/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua +++ b/ar/.config/TheSiahxyz/lua/thesiahxyz/plugins/context.lua @@ -16,11 +16,10 @@ return { zindex = 20, -- The Z-index of the context window on_attach = nil, -- (fun(buf: integer): boolean) return false to disable attaching }) - end, - keys = { + vim.keymap.set("n", "[t", function() require("treesitter-context").go_to_context(vim.v.count1) - end, { silent = true, desc = "Go to context" }), - vim.keymap.set({ "n", "v" }, "<leader>zc", "<cmd>TSContextToggle<cr>", { desc = "Toggle context" }), - }, + end, { silent = true, desc = "Go to context" }) + vim.keymap.set({ "n", "v" }, "<leader>zc", "<cmd>TSContextToggle<cr>", { desc = "Toggle context" }) + end, } |
