diff --git a/lua/keymaps.lua b/lua/keymaps.lua index a74b208..395f1ef 100644 --- a/lua/keymaps.lua +++ b/lua/keymaps.lua @@ -24,6 +24,9 @@ map("x", "gs", map("n", "gd", vim.lsp.buf.definition, { desc = "LSP: go to definition" }) map("n", "gD", vim.lsp.buf.declaration, { desc = "LSP: go to declaration" }) +-- Lazygit in a floating window (snacks.nvim), rooted at the current repo +map("n", "lg", function() Snacks.lazygit() end, { desc = "Git: lazygit" }) + -- Trouble map("n", "xx", "Trouble diagnostics toggle focus=true", { desc = "Trouble: workspace diagnostics" }) diff --git a/lua/plugins.lua b/lua/plugins.lua index 79632c6..5e6aea1 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -106,6 +106,7 @@ require("snacks").setup({ doc = { inline = false }, }, terminal = {}, + lazygit = {}, }) -- PDF reader (n/p page, z/q/e zoom, :PDFReader ...). Bookmark pickers need