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)