Initial commit

This commit is contained in:
Jiří Štefka 2024-03-06 02:24:31 +01:00 committed by GitHub
commit e2cff543d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
29 changed files with 2701 additions and 0 deletions
nvim/plugin

11
nvim/plugin/diffview.lua Normal file
View file

@ -0,0 +1,11 @@
if vim.g.did_load_diffview_plugin then
return
end
vim.g.did_load_diffview_plugin = true
vim.keymap.set('n', '<leader>gfb', function()
vim.cmd.DiffviewFileHistory(vim.api.nvim_buf_get_name(0))
end, { desc = 'diffview [g]it [f]ile history (current [b]uffer)' })
vim.keymap.set('n', '<leader>gfc', vim.cmd.DiffviewFileHistory, { desc = 'diffview [g]it [f]ile history ([c]wd)' })
vim.keymap.set('n', '<leader>gd', vim.cmd.DiffviewOpen, { desc = '[g]it [d]iffview open' })
vim.keymap.set('n', '<leader>gft', vim.cmd.DiffviewToggleFiles, { desc = '[g]it [d]iffview [f]iles [t]oggle' })