From ca3a037ba5b77fd8532fd8f5b03777e043f9e2e2 Mon Sep 17 00:00:00 2001 From: Kiril Date: Sun, 19 May 2024 14:03:30 +0100 Subject: [PATCH] Add lazygit integration When lg is pressed, it runs lazygit overtop Neovim. --- lua/plugins/lazygit.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 lua/plugins/lazygit.lua diff --git a/lua/plugins/lazygit.lua b/lua/plugins/lazygit.lua new file mode 100644 index 0000000..167a9cf --- /dev/null +++ b/lua/plugins/lazygit.lua @@ -0,0 +1,20 @@ +-- nvim v0.8.0 +return { + "kdheepak/lazygit.nvim", + 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" }, + }, +}