Added :DiffOrig command
This commit is contained in:
parent
c12ae5829e
commit
2c2f613248
7
init.lua
7
init.lua
|
|
@ -16,6 +16,13 @@ vim.cmd([[
|
||||||
AirlineTheme catppuccin
|
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
|
-- Custom keybindings using the util `map` function
|
||||||
local map = require("utils").map
|
local map = require("utils").map
|
||||||
local opts = { silent=true }
|
local opts = { silent=true }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user