Skip to content

Commit

Permalink
feat(keymappings): move which-key gitsigns keymaps to plugin itself
Browse files Browse the repository at this point in the history
  • Loading branch information
ecosse3 committed Aug 1, 2023
1 parent eeabba7 commit a46ba66
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
10 changes: 10 additions & 0 deletions lua/config/plugins.lua
Original file line number Diff line number Diff line change
Expand Up @@ -606,6 +606,16 @@ return {
config = function()
require("plugins.git.signs")
end,
keys = {
{ "<Leader>ghd", desc = "diff hunk" },
{ "<Leader>ghp", desc = "preview" },
{ "<Leader>ghR", desc = "reset buffer" },
{ "<Leader>ghr", desc = "reset hunk" },
{ "<Leader>ghs", desc = "stage hunk" },
{ "<Leader>ghS", desc = "stage buffer" },
{ "<Leader>ght", desc = "toggle deleted" },
{ "<Leader>ghu", desc = "undo stage" },
}
},
{
"sindrets/diffview.nvim",
Expand Down
8 changes: 0 additions & 8 deletions lua/plugins/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ local normal_mode_mappings = {
},
h = {
name = 'Hunk',
d = 'diff hunk',
p = 'preview',
R = 'reset buffer',
r = 'reset hunk',
s = 'stage hunk',
S = 'stage buffer',
t = 'toggle deleted',
u = 'undo stage',
},
l = {
name = 'Log',
Expand Down

0 comments on commit a46ba66

Please sign in to comment.