浏览代码

nixpkgs/neovim: update git mappings

Thomas Dy 8 月之前
父节点
当前提交
2ed7873748
共有 1 个文件被更改,包括 3 次插入4 次删除
  1. 3 4
      .config/nixpkgs/neovim/mappings.lua

+ 3 - 4
.config/nixpkgs/neovim/mappings.lua

@@ -37,8 +37,8 @@ vim.keymap.set('n', '[x', '?^[<lt>=>]\\{7}<CR>', opts)
 vim.keymap.set('n', ']x', '/^[<lt>=>]\\{7}<CR>', opts)
 
 -- hunk navigation
-vim.keymap.set('n', '[c', '<cmd>Gitsigns prev_hunk<CR>', opts)
-vim.keymap.set('n', ']c', '<cmd>Gitsigns next_hunk<CR>', opts)
+vim.keymap.set('n', '[h', '<cmd>Gitsigns prev_hunk<CR>', opts)
+vim.keymap.set('n', ']h', '<cmd>Gitsigns next_hunk<CR>', opts)
 
 -- window navigation
 vim.keymap.set('n', '[w', '<C-w>W', opts)
@@ -54,9 +54,8 @@ vim.keymap.set('n', '<Leader>n', require('mini.notify').show_history, opts)
 -- open status in current split without special flag (so navigating away closes it)
 -- https://github.com/tpope/vim-fugitive/issues/1296
 vim.keymap.set('n', '<Leader>gs', '<cmd>Gedit :<CR>', opts)
--- open in reverse to match order when rebasing
-vim.keymap.set('n', '<Leader>gll', '<cmd>Git log --reverse --oneline origin/HEAD..HEAD<CR>', opts)
 vim.keymap.set('n', '<Leader>gb', '<cmd>Telescope git_branches<CR>', opts)
+vim.keymap.set('n', '<Leader>gd', '<cmd>Gitsigns toggle_deleted<CR>', opts)
 
 -- undotree
 vim.keymap.set('n', '<Leader>ut', '<cmd>UndotreeToggle<CR>', opts)