-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlazy.lua
More file actions
37 lines (37 loc) · 707 Bytes
/
Copy pathlazy.lua
File metadata and controls
37 lines (37 loc) · 707 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
return {
'trippwill/swapdiff.nvim',
dependencies = {
{
'folke/snacks.nvim',
},
{
'folke/noice.nvim',
optional = true,
},
{
'akinsho/bufferline.nvim',
optional = true,
},
{
'nvim-lua/plenary.nvim',
optional = true,
},
},
cmd = {
'SwapDiff',
'SwapDiffLog',
},
event = 'SwapExists',
opts = {},
init = function()
local api = vim.api
local augrp_id = api.nvim_create_augroup('swapdiff-augrp', { clear = true })
api.nvim_create_autocmd('SwapExists', {
group = augrp_id,
pattern = '*',
callback = function(args)
require('swapdiff').onSwapExists(args)
end,
})
end,
}