From d78e602f0f21c067c2129b289625755280966f35 Mon Sep 17 00:00:00 2001 From: Fernando Bueno Date: Mon, 1 Jul 2024 13:04:04 -0400 Subject: [PATCH] adds lazygit --- lua/custom/core/options.lua | 2 ++ lua/custom/plugins/lazygit.lua | 23 +++++++++++++++++++++++ 2 files changed, 25 insertions(+) create mode 100644 lua/custom/plugins/lazygit.lua diff --git a/lua/custom/core/options.lua b/lua/custom/core/options.lua index ea3b9821..18b22dda 100644 --- a/lua/custom/core/options.lua +++ b/lua/custom/core/options.lua @@ -21,3 +21,5 @@ opt.termguicolors = true opt.wrap = false opt.timeoutlen = 222 +-- Set shellcmdflag +opt.shellcmdflag = "-c" \ No newline at end of file diff --git a/lua/custom/plugins/lazygit.lua b/lua/custom/plugins/lazygit.lua new file mode 100644 index 00000000..25276b35 --- /dev/null +++ b/lua/custom/plugins/lazygit.lua @@ -0,0 +1,23 @@ +return { + "kdheepak/lazygit.nvim", + -- enabled = vim.api.nvim_get_var("useLazyGit"), + cmd = { + "LazyGit", + "LazyGitConfig", + "LazyGitCurrentFile", + "LazyGitFilter", + "LazyGitFilterCurrentFile", + }, + event = "VeryLazy", + keys = { + { "lg", "LazyGit", desc = "Lazy Git" }, + }, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-telescope/telescope.nvim", + }, + config = function() + require("telescope").load_extension("lazygit") + end +} +