drop the snacks terminal toggle, draw lazygit on the editor background

The global terminal-mode <leader>t made <space> wait for a follow-up key
in every terminal, including lazygit, which broke typing there. The
bottom terminal panel isn't needed, so remove it and its mapping.

gruvbox gives floats a lighter background than the editor, which made
the lazygit float look too bright; map its Normal to the editor's.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jannikdonkerandClaude Opus 5.5 committed 2026-11-18 20:25:16 +01:00
1 parent 6fcc20b6ff
commit 6f8bd5171d
1 file changed
+5 -11
+5 -11
View File
@@ -107,23 +107,17 @@ require("snacks").setup({
enabled = true, enabled = true,
doc = { inline = false }, doc = { inline = false },
}, },
terminal = {}, -- gruvbox gives floats a lighter background than the editor (bg1 vs bg0
lazygit = {}, -- in dark mode); draw lazygit with the editor's background instead.
lazygit = {
win = { wo = { winhighlight = "Normal:Normal,NormalNC:Normal" } },
},
}) })
-- PDF reader (n/p page, z/q/e zoom, :PDFReader ...). Bookmark pickers need -- PDF reader (n/p page, z/q/e zoom, :PDFReader ...). Bookmark pickers need
-- telescope, which isn't installed; everything else works without it. -- telescope, which isn't installed; everything else works without it.
require("pdfreader").setup() require("pdfreader").setup()
-- 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" })
vim.api.nvim_create_autocmd("FileType", { vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown", pattern = "markdown",
callback = function(ev) callback = function(ev)