Add vim-fugitive git keybindings

writing
Nick Zana 3 years ago
parent aeab7edde9
commit 147f72e431
No known key found for this signature in database
GPG Key ID: A6E59E60FE474883

@ -43,7 +43,9 @@ map('n', '<leader>k', '<cmd>lprev<CR>zz', options) -- Go to previous item in glo
map('n', '<leader>q', '<cmd>call ToggleQFList(0)<CR>', {}) -- see plugin/navigation.vim for ToggleQFList definition map('n', '<leader>q', '<cmd>call ToggleQFList(0)<CR>', {}) -- see plugin/navigation.vim for ToggleQFList definition
-- git -- git
map('n', '<leader>gs', '<cmd>G<CR>', options) map('n', '<leader>gs', '<cmd>G<CR>', options) -- Show git status
map('n', '<leader>gc', '<cmd>G commit<CR>', options) -- git commit
map('n', '<leader>gp', '<cmd>G push<CR>', {}) -- git push
-- LSP -- LSP
-- Use an on_attach function to only map the following keys -- Use an on_attach function to only map the following keys

Loading…
Cancel
Save