Public Access
added terminal
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user