Public Access
open lazygit in a floating window with <leader>lg
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
fb8cdc0e1c
commit
056c309bd6
2 files changed
+4
No files matched your search
@@ -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.definition, { desc = "LSP: go to definition" })
|
||||||
map("n", "<leader>gD", vim.lsp.buf.declaration, { desc = "LSP: go to declaration" })
|
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
|
-- Trouble
|
||||||
map("n", "<leader>xx", "<cmd>Trouble diagnostics toggle focus=true<cr>",
|
map("n", "<leader>xx", "<cmd>Trouble diagnostics toggle focus=true<cr>",
|
||||||
{ desc = "Trouble: workspace diagnostics" })
|
{ desc = "Trouble: workspace diagnostics" })
|
||||||
|
|||||||
@@ -106,6 +106,7 @@ require("snacks").setup({
|
|||||||
doc = { inline = false },
|
doc = { inline = false },
|
||||||
},
|
},
|
||||||
terminal = {},
|
terminal = {},
|
||||||
|
lazygit = {},
|
||||||
})
|
})
|
||||||
|
|
||||||
-- 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
|
||||||
|
|||||||
Reference in new issue
Block a user