Public Access
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:
1 parent
6fcc20b6ff
commit
6f8bd5171d
1 file changed
+5
-11
+5
-11
@@ -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" }, "<leader>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)
|
||||
|
||||
Reference in new issue
Block a user