From 6f8bd5171d3b30a52ecdc23f1622e3f7486d4ac6 Mon Sep 17 00:00:00 2001 From: Jannik Donker Date: Wed, 18 Nov 2026 20:25:16 +0100 Subject: [PATCH] drop the snacks terminal toggle, draw lazygit on the editor background The global terminal-mode t made 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 --- lua/plugins.lua | 16 +++++----------- 1 file changed, 5 insertions(+), 11 deletions(-) diff --git a/lua/plugins.lua b/lua/plugins.lua index 0855fc2..1347495 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -107,23 +107,17 @@ require("snacks").setup({ enabled = true, doc = { inline = false }, }, - terminal = {}, - lazygit = {}, + -- gruvbox gives floats a lighter background than the editor (bg1 vs bg0 + -- 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 -- telescope, which isn't installed; everything else works without it. require("pdfreader").setup() --- 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" }) - vim.api.nvim_create_autocmd("FileType", { pattern = "markdown", callback = function(ev)