Skip to content

Commit

Permalink
✨ Diffview shortcuts
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrkl committed Dec 22, 2024
1 parent b7ec6be commit bb212e7
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lua/fredrkl/plugins/diffview.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
return {
'sindrets/diffview.nvim'
'sindrets/diffview.nvim',
config = function()
require('diffview').setup()
vim.api.nvim_set_keymap('n', '<leader>do', ':DiffviewOpen<CR>', { noremap = true, silent = true, desc = "Open Diffview" })
vim.api.nvim_set_keymap('n', '<leader>dc', ':DiffviewClose<CR>', { noremap = true, silent = true, desc = "Close Diffview" })
vim.api.nvim_set_keymap('n', '<leader>dr', ':DiffviewRefresh<CR>', { noremap = true, silent = true, desc = "Refresh Diffview" })
end,
}

0 comments on commit bb212e7

Please sign in to comment.