From 9017052ec98ea3a405e44eae962ef6e5758b2bd6 Mon Sep 17 00:00:00 2001 From: Jannik Donker Date: Fri, 19 Jun 2026 19:13:52 +0200 Subject: [PATCH] added terminal --- lua/plugins.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/lua/plugins.lua b/lua/plugins.lua index 22e0cfe..478ea31 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -97,8 +97,18 @@ require("snacks").setup({ enabled = true, doc = { inline = false }, }, + terminal = {}, }) +-- Toggle a bottom terminal panel (reuses the same shell instance). +vim.keymap.set({ "n", "t" }, "t", + function() + Snacks.terminal(nil, { + win = { position = "bottom", height = 10 }, + }) + end, + { desc = "Toggle terminal" }) + -- Rebuild mdmath JS deps on plugin update vim.api.nvim_create_autocmd("PackChanged", { callback = function(ev)