summaryrefslogtreecommitdiff
path: root/nvim/lua/config
diff options
context:
space:
mode:
authorSkladnayazebra <skladnayazebra@gmail.com>2025-10-22 18:05:54 +0200
committerSkladnayazebra <skladnayazebra@gmail.com>2025-10-22 18:05:54 +0200
commit014370d2ca04e0e2ddbe9b55021bb12c18eb75ce (patch)
treeb9ac63b1300139125d949a2d148b9e458dabf71f /nvim/lua/config
parent4378a4161ba961c0e2ade1f13e3399bfa07a083e (diff)
lazygit integration
Diffstat (limited to 'nvim/lua/config')
-rw-r--r--nvim/lua/config/lazy.lua3
-rw-r--r--nvim/lua/config/lazygit.lua20
2 files changed, 22 insertions, 1 deletions
diff --git a/nvim/lua/config/lazy.lua b/nvim/lua/config/lazy.lua
index 8483b9f..b252fa3 100644
--- a/nvim/lua/config/lazy.lua
+++ b/nvim/lua/config/lazy.lua
@@ -57,7 +57,8 @@ require("lazy").setup({
dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" },
opts = {},
},
- { "prettier/vim-prettier" }
+ { "prettier/vim-prettier" },
+ require("config.lazygit")
},
install = { colorscheme = { "gruvbox" } },
checker = { enabled = true },
diff --git a/nvim/lua/config/lazygit.lua b/nvim/lua/config/lazygit.lua
new file mode 100644
index 0000000..97d42d9
--- /dev/null
+++ b/nvim/lua/config/lazygit.lua
@@ -0,0 +1,20 @@
+return {
+ "kdheepak/lazygit.nvim",
+ lazy = true,
+ cmd = {
+ "LazyGit",
+ "LazyGitConfig",
+ "LazyGitCurrentFile",
+ "LazyGitFilter",
+ "LazyGitFilterCurrentFile",
+ },
+ -- optional for floating window border decoration
+ dependencies = {
+ "nvim-lua/plenary.nvim",
+ },
+ -- setting the keybinding for LazyGit with 'keys' is recommended in
+ -- order to load the plugin when the command is run for the first time
+ keys = {
+ { "<leader>lg", "<cmd>LazyGit<cr>", desc = "LazyGit" }
+ }
+}