Browse Source

Move fugitive keybinds to keybinds.lua.

master
Taylor Bockman 1 year ago
parent
commit
c6b78cbfd7
  1. 7
      lua/conf/git.lua
  2. 7
      lua/conf/keybinds.lua

7
lua/conf/git.lua

@ -1,8 +1 @@
-- Fugitive Configuration -- Fugitive Configuration
--
-- Fugitive bindings
vim.api.nvim_set_keymap('n', '<Leader>gs', ':Git<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gd', ':Git diff<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gb', ':Git blame<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gc', ':Git commit<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gp', ':Git push<CR>', {noremap = true})

7
lua/conf/keybinds.lua

@ -69,3 +69,10 @@ vim.keymap.set('n', '<F10>', '<cmd>call vimspector#StepInto()<cr>')
vim.keymap.set('n', "Db", ":call vimspector#ToggleBreakpoint()<cr>") vim.keymap.set('n', "Db", ":call vimspector#ToggleBreakpoint()<cr>")
vim.keymap.set('n', "Dw", ":call vimspector#AddWatch()<cr>") vim.keymap.set('n', "Dw", ":call vimspector#AddWatch()<cr>")
vim.keymap.set('n', "De", ":call vimspector#Evaluate()<cr>") vim.keymap.set('n', "De", ":call vimspector#Evaluate()<cr>")
-- Fugitive bindings
vim.api.nvim_set_keymap('n', '<Leader>gs', ':Git<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gd', ':Git diff<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gb', ':Git blame<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gc', ':Git commit<CR>', {noremap = true})
vim.api.nvim_set_keymap('n', '<Leader>gp', ':Git push<CR>', {noremap = true})

Loading…
Cancel
Save