mirror of
https://github.com/nvim-lua/kickstart.nvim.git
synced 2025-06-25 06:38:34 +02:00
Done
This commit is contained in:
parent
3338d39206
commit
edc87670eb
16 changed files with 1096 additions and 13 deletions
36
lua/custom/plugins/lazygit.lua
Normal file
36
lua/custom/plugins/lazygit.lua
Normal file
|
@ -0,0 +1,36 @@
|
|||
-- LazyGit integration for Neovim
|
||||
-- https://github.com/kdheepak/lazygit.nvim
|
||||
|
||||
return {
|
||||
{
|
||||
"kdheepak/lazygit.nvim",
|
||||
-- Lazy load on command
|
||||
cmd = {
|
||||
"LazyGit",
|
||||
"LazyGitConfig",
|
||||
"LazyGitCurrentFile",
|
||||
"LazyGitFilter",
|
||||
"LazyGitFilterCurrentFile",
|
||||
},
|
||||
-- Lazy load on keymaps
|
||||
keys = {
|
||||
{ "<leader>gg", "<cmd>LazyGit<CR>", desc = "Open LazyGit" },
|
||||
{ "<leader>gc", "<cmd>LazyGitConfig<CR>", desc = "Open LazyGit Config" },
|
||||
{ "<leader>gf", "<cmd>LazyGitCurrentFile<CR>", desc = "LazyGit Current File" },
|
||||
},
|
||||
-- Dependencies
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
},
|
||||
-- Plugin configuration
|
||||
config = function()
|
||||
-- Configure floating window border
|
||||
require("lazygit").setup({
|
||||
floating_window_winblend = 0, -- transparency of floating window
|
||||
floating_window_scaling_factor = 0.9, -- scaling factor for floating window
|
||||
floating_window_border_chars = { '╭', '─', '╮', '│', '╯', '─', '╰', '│' }, -- customize floating window border chars
|
||||
lazygit_floating_window_use_plenary = true, -- use plenary.nvim to manage floating window if available
|
||||
})
|
||||
end,
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue