From b05bbf4d2fd16fa11ff98556b3d2838e57ba91ce Mon Sep 17 00:00:00 2001 From: topper3418 <67675579+topper3418@users.noreply.github.com> Date: Sun, 14 Jul 2024 03:41:43 -0500 Subject: [PATCH] added lazygit, need to reinstall --- init.lua | 2 ++ lua/custom/plugins/lazygit.lua | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 lua/custom/plugins/lazygit.lua diff --git a/init.lua b/init.lua index ae09e405..aad701de 100644 --- a/init.lua +++ b/init.lua @@ -253,6 +253,8 @@ require('lazy').setup({ require 'custom.plugins.ollama', -- oil, a file explorer require 'custom.plugins.oil', + -- lazy git, for git stuff + require 'lua.custom.plugins.lazygit', -- Highlight todo, notes, etc in comments { 'folke/todo-comments.nvim', event = 'VimEnter', dependencies = { 'nvim-lua/plenary.nvim' }, opts = { signs = false } }, diff --git a/lua/custom/plugins/lazygit.lua b/lua/custom/plugins/lazygit.lua new file mode 100644 index 00000000..f0bbd383 --- /dev/null +++ b/lua/custom/plugins/lazygit.lua @@ -0,0 +1,19 @@ +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' }, + }, +}