diff options
Diffstat (limited to '.config/nvim/lua/keybinds.lua')
-rw-r--r-- | .config/nvim/lua/keybinds.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/.config/nvim/lua/keybinds.lua b/.config/nvim/lua/keybinds.lua index 3d4eac2..97d7548 100644 --- a/.config/nvim/lua/keybinds.lua +++ b/.config/nvim/lua/keybinds.lua @@ -26,6 +26,9 @@ vim.keymap.set("n", "<Leader>D", telescope.lsp_definitions) vim.keymap.set("n", "<Leader>R", telescope.lsp_references) vim.keymap.set("n", "<Leader>m", ":MinimapToggle<CR>") +vim.keymap.set("n", "<Leader>b", ":Gitsigns blame_line<CR>") +vim.keymap.set("n", "<Leader>h", ":Gitsigns preview_hunk<CR>") +vim.keymap.set("n", "<Leader>d", ":Gitsigns diffthis<CR>") vim.keymap.set("n", "<Leader>,", ":TroubleToggle<CR>") vim.keymap.set("n", "<Leader>t", ":belowright split | resize 5 | terminal<CR>") vim.keymap.set("n", "<Leader>s", ":w<CR>") @@ -50,6 +53,9 @@ wk.register({ ["r"] = "Rename"; ["n"] = "Show file tree"; ["m"] = "Toggle Minimap"; + ["b"] = "Blame line"; + ["h"] = "Preview hunk"; + ["d"] = "Diff this"; ["d"] = "Show diagnostics"; ["t"] = "Open terminal"; ["s"] = "Save file"; |