From 36853b6b2f0260f075b4dd1e6e65af18b9f9d92a Mon Sep 17 00:00:00 2001 From: ViViDboarder Date: Tue, 10 May 2022 12:06:07 -0700 Subject: [PATCH] Fix fugitive commands --- neovim/lua/plugins.lua | 8 ++++---- vim/rc/plugins/fugitive.rc.vim | 12 ++++++------ 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/neovim/lua/plugins.lua b/neovim/lua/plugins.lua index 5691cf5..97a542e 100644 --- a/neovim/lua/plugins.lua +++ b/neovim/lua/plugins.lua @@ -122,11 +122,11 @@ use({ "tpope/vim-fugitive", config = function() local opts = { silent = true, noremap = true } - vim.api.nvim_set_keymap("n", "gb", "Gblame", opts) - vim.api.nvim_set_keymap("n", "gc", "Gcommit", opts) - vim.api.nvim_set_keymap("n", "gd", "Gdiff", opts) + vim.api.nvim_set_keymap("n", "gb", "Git blame", opts) + vim.api.nvim_set_keymap("n", "gc", "Git commit", opts) + vim.api.nvim_set_keymap("n", "gd", "Git diff", opts) vim.api.nvim_set_keymap("n", "gs", "Git", opts) - vim.api.nvim_set_keymap("n", "gw", "Gwrite", opts) + vim.api.nvim_set_keymap("n", "gw", "Git write", opts) end, }) diff --git a/vim/rc/plugins/fugitive.rc.vim b/vim/rc/plugins/fugitive.rc.vim index 2ee2b78..9c172a7 100644 --- a/vim/rc/plugins/fugitive.rc.vim +++ b/vim/rc/plugins/fugitive.rc.vim @@ -1,7 +1,7 @@ -Plug 'tpope/vim-fugitive' ", { 'on': ['Gblame', 'Gdiff', 'Gcommit', 'Gstatus', 'Gwrite'] } +Plug 'tpope/vim-fugitive' ", { 'on': ['Git'] } " Mappings -nnoremap gb :Gblame -nnoremap gc :Gcommit -nnoremap gd :Gdiff -nnoremap gs :Gstatus -nnoremap gw :Gwrite +nnoremap gb :Git blame +nnoremap gc :Git commit +nnoremap gd :Git diff +nnoremap gs :Git status +nnoremap gw :Git write