added terminal

This commit is contained in:
2026-06-19 19:13:52 +02:00
parent c7e90a01ac
commit 9017052ec9
+10
View File
@@ -97,8 +97,18 @@ require("snacks").setup({
enabled = true, enabled = true,
doc = { inline = false }, doc = { inline = false },
}, },
terminal = {},
}) })
-- Toggle a bottom terminal panel (reuses the same shell instance).
vim.keymap.set({ "n", "t" }, "<leader>t",
function()
Snacks.terminal(nil, {
win = { position = "bottom", height = 10 },
})
end,
{ desc = "Toggle terminal" })
-- Rebuild mdmath JS deps on plugin update -- Rebuild mdmath JS deps on plugin update
vim.api.nvim_create_autocmd("PackChanged", { vim.api.nvim_create_autocmd("PackChanged", {
callback = function(ev) callback = function(ev)