From 7ab92babb0623cd224873cc2d92c95f278c41f4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Miguel=20R=C3=BAa?= Date: Tue, 4 Jun 2024 10:54:14 +0200 Subject: [PATCH] Adding lazygit as custom puglin Also, adding a typo fix --- init.lua | 2 +- lua/custom/plugins/lazygit.lua | 21 +++++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/lazygit.lua diff --git a/init.lua b/init.lua index be2a781c..4dda3cca 100644 --- a/init.lua +++ b/init.lua @@ -940,7 +940,7 @@ require('lazy').setup({ require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', require 'kickstart.plugins.autopairs', - require 'kickstart.plugins.neo-tree', + require 'kickstart.plugins.neo-tree', -- https://github.com/nvim-neo-tree/neo-tree.nvim -- require 'kickstart.plugins.gitsigns', -- adds gitsigns recommend keymaps -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` diff --git a/lua/custom/plugins/lazygit.lua b/lua/custom/plugins/lazygit.lua new file mode 100644 index 00000000..17e5ae5d --- /dev/null +++ b/lua/custom/plugins/lazygit.lua @@ -0,0 +1,21 @@ +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' }, + }, + }, +}