From 014370d2ca04e0e2ddbe9b55021bb12c18eb75ce Mon Sep 17 00:00:00 2001 From: Skladnayazebra Date: Wed, 22 Oct 2025 18:05:54 +0200 Subject: lazygit integration --- nvim/lazy-lock.json | 1 + nvim/lua/config/lazy.lua | 3 ++- nvim/lua/config/lazygit.lua | 20 ++++++++++++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 nvim/lua/config/lazygit.lua (limited to 'nvim') diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index d7ef896..26c0c69 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -4,6 +4,7 @@ "gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" }, "gruvbox.nvim": { "branch": "main", "commit": "5e0a460d8e0f7f669c158dedd5f9ae2bcac31437" }, "lazy.nvim": { "branch": "main", "commit": "1ea3c4085785f460fb0e46d2fe1ee895f5f9e7c1" }, + "lazygit.nvim": { "branch": "main", "commit": "2305deed25bc61b866d5d39189e9105a45cf1cfb" }, "nvim-lspconfig": { "branch": "master", "commit": "e5c61b02f33b5c6538be25b2696b33b4cc91e667" }, "nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, 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 = { + { "lg", "LazyGit", desc = "LazyGit" } + } +} -- cgit v1.3.1