rm : vim-fugitive plugin
This commit is contained in:
parent
2685ad8e30
commit
50a5bcc870
|
@ -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 = "<leader>zf",
|
||||
minimalistic_mode = "<leader>zm", -- as it is
|
||||
},
|
||||
-- git integration & tooling
|
||||
vim_fugitive = {
|
||||
diff_get_2 = "<leader>gh",
|
||||
diff_get_3 = "<leader>gl",
|
||||
git = "<leader>gs",
|
||||
git_blame = "<leader>gb",
|
||||
},
|
||||
}
|
||||
|
||||
return M
|
||||
|
|
|
@ -181,13 +181,4 @@ M.truezen = function()
|
|||
map("n", m.minimalistic_mode, ":TZMinimalist <CR>")
|
||||
end
|
||||
|
||||
M.vim_fugitive = function()
|
||||
local m = plugin_maps.vim_fugitive
|
||||
|
||||
map("n", m.git, ":Git <CR>")
|
||||
map("n", m.git_blame, ":Git blame <CR>")
|
||||
map("n", m.diff_get_2, ":diffget //2 <CR>")
|
||||
map("n", m.diff_get_3, ":diffget //3 <CR>")
|
||||
end
|
||||
|
||||
return M
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue