Skip to content

Commit

Permalink
Vima add Telescope and git keymaps
Browse files Browse the repository at this point in the history
  • Loading branch information
aminfara committed Jan 9, 2022
1 parent f8a887b commit 791f605
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions vima/lua/vima/plugins/whichkey.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,28 @@ which_key.setup({
border = 'rounded',
},
})

which_key.register({
f = {
name = 'find',
b = { '<cmd>Telescope buffers<cr>', 'Buffers' },
f = { '<cmd>Telescope find_files<cr>', 'Files' },
g = { '<cmd>Telescope live_grep<cr>', 'Grep' },
r = { '<cmd>Telescope oldfiles<cr>', 'Recent file' },
s = { '<cmd>Telescope git_status<cr>', 'Git status' },
},
g = {
name = 'Git',
b = { '<cmd>Gitsigns stage_buffer<cr>', 'Stage file' },
d = { '<cmd>Gitsigns diffthis<cr>', 'Diff current file' },
n = { '<cmd>Gitsigns next_hunk<cr>', 'Next hunk' },
p = { '<cmd>Gitsigns prev_hunk<cr>', 'Prev hunk' },
r = { '<cmd>Gitsigns refresh<cr>', 'Refresh' },
s = { '<cmd>Gitsigns stage_hunk<cr>', 'Stage hunk' },
u = { '<cmd>Gitsigns undo_stage_hunk<cr>', 'Undo stage hunk' },
},
t = {
name = 'Toggle',
f = { '<cmd>NvimTreeToggle<cr>', 'NVIMTree' },
},
}, { prefix = '<leader>' })

0 comments on commit 791f605

Please sign in to comment.