From 50a5bcc870276c8e986282a5803647602730d7e0 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 25 Sep 2021 23:11:59 +0530 Subject: [PATCH] rm : vim-fugitive plugin --- lua/core/default_config.lua | 8 -------- lua/core/mappings.lua | 9 --------- lua/plugins/init.lua | 16 ---------------- 3 files changed, 33 deletions(-) diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 1224e8e..312500e 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -72,7 +72,6 @@ M.plugins = { neoscroll = false, -- smooth scroll telescope_media = false, -- media previews within telescope finders truezen = false, -- distraction free & minimalist UI mode - vim_fugitive = false, -- git integration & tooling vim_matchup = true, -- % operator enhancements }, options = { @@ -202,13 +201,6 @@ M.mappings.plugins = { focus_mode = "zf", minimalistic_mode = "zm", -- as it is }, - -- git integration & tooling - vim_fugitive = { - diff_get_2 = "gh", - diff_get_3 = "gl", - git = "gs", - git_blame = "gb", - }, } return M diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 15f29ae..4d9d157 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -181,13 +181,4 @@ M.truezen = function() map("n", m.minimalistic_mode, ":TZMinimalist ") end -M.vim_fugitive = function() - local m = plugin_maps.vim_fugitive - - map("n", m.git, ":Git ") - map("n", m.git_blame, ":Git blame ") - map("n", m.diff_get_2, ":diffget //2 ") - map("n", m.diff_get_3, ":diffget //3 ") -end - return M diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index eb11b9f..a2afc55 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -292,21 +292,5 @@ return packer.startup(function() end, } - use { - "tpope/vim-fugitive", - disable = not plugin_status.vim_fugitive, - cmd = { - "Git", - "Gdiff", - "Gdiffsplit", - "Gvdiffsplit", - "Gwrite", - "Gw", - }, - setup = function() - require("core.mappings").vim_fugitive() - end, - } - require("core.hooks").run("install_plugins", use) end)