Added :DiffOrig command

This commit is contained in:
Ethan Smith-Coss 2024-02-17 16:08:54 +00:00
parent c12ae5829e
commit 2c2f613248
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

View File

@ -16,6 +16,13 @@ vim.cmd([[
AirlineTheme catppuccin
]])
-- implement the DiffOrig command (see :h :DiffOrig for more info)
vim.cmd([[
command DiffOrig vert new | set bt=nofile | set bufhidden | set pvw
\ | r # | 0d_ | diffthis | wincmd p | diffthis
command DiffOff diffoff | pc
]])
-- Custom keybindings using the util `map` function
local map = require("utils").map
local opts = { silent=true }