open lazygit in a floating window with <leader>lg

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jannikdonkerandClaude Opus 5.5 committed 2026-11-17 17:33:53 +01:00
1 parent fb8cdc0e1c
commit 056c309bd6
2 files changed
+4

No files matched your search

+3
View File
@@ -24,6 +24,9 @@ map("x", "<leader>gs",
map("n", "<leader>gd", vim.lsp.buf.definition, { desc = "LSP: go to definition" })
map("n", "<leader>gD", vim.lsp.buf.declaration, { desc = "LSP: go to declaration" })
-- Lazygit in a floating window (snacks.nvim), rooted at the current repo
map("n", "<leader>lg", function() Snacks.lazygit() end, { desc = "Git: lazygit" })
-- Trouble
map("n", "<leader>xx", "<cmd>Trouble diagnostics toggle focus=true<cr>",
{ desc = "Trouble: workspace diagnostics" })