diff --git a/home/.config/nvim/lua/plugs/fugitive.lua b/home/.config/nvim/lua/plugs/fugitive.lua deleted file mode 100644 index c681e70..0000000 --- a/home/.config/nvim/lua/plugs/fugitive.lua +++ /dev/null @@ -1,36 +0,0 @@ -return { - "tpope/vim-fugitive", - config = function() - require("utils").add_keymaps({ - n = { - ["gp"] = { - cmd = ":Gitsigns preview_hunk_inline", - }, - ["gt"] = { - cmd = ":Gitsigns toggle_current_line_blame", - }, - ["ga"] = { - cmd = ":Gwrite", - }, - ["gr"] = { - cmd = ":Gread", - }, - ["gs"] = { - cmd = ":G", - }, - ["gd"] = { - cmd = ":Gdiffsplit", - }, - ["gc"] = { - cmd = ":G commit", - }, - ["gl"] = { - cmd = ":G log", - }, - ["gb"] = { - cmd = ":G blame", - }, - } - }) - end -} diff --git a/home/.config/nvim/lua/plugs/incline.lua b/home/.config/nvim/lua/plugs/incline.lua index 1118db3..ac9c345 100644 --- a/home/.config/nvim/lua/plugs/incline.lua +++ b/home/.config/nvim/lua/plugs/incline.lua @@ -76,6 +76,17 @@ return { { " " } } end, + + require("utils").add_keymaps({ + n = { + ["gp"] = { + cmd = ":Gitsigns preview_hunk_inline", + }, + ["gt"] = { + cmd = ":Gitsigns toggle_current_line_blame", + }, + } + }) }) end, event = "VeryLazy", diff --git a/home/.config/nvim/lua/plugs/lazygit.lua b/home/.config/nvim/lua/plugs/lazygit.lua deleted file mode 100644 index 27779e2..0000000 --- a/home/.config/nvim/lua/plugs/lazygit.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - "kdheepak/lazygit.nvim", - cmd = { - "LazyGit", - "LazyGitConfig", - "LazyGitCurrentFile", - "LazyGitFilter", - "LazyGitFilterCurrentFile", - }, - 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" } - } -} diff --git a/home/.config/nvim/lua/plugs/neogit.lua b/home/.config/nvim/lua/plugs/neogit.lua new file mode 100644 index 0000000..110451a --- /dev/null +++ b/home/.config/nvim/lua/plugs/neogit.lua @@ -0,0 +1,9 @@ +return { + "NeogitOrg/neogit", + dependencies = { + "nvim-lua/plenary.nvim", + "sindrets/diffview.nvim", + "nvim-telescope/telescope.nvim", + }, + config = true +}