feat(diff): autojump (#48)

centralized configuration

Signed-off-by: Aaron Pham <contact@aarnphm.xyz>
This commit is contained in:
Aaron Pham
2024-08-17 14:14:02 -04:00
committed by GitHub
parent f5d9d2139a
commit 1aaf6a8227
4 changed files with 68 additions and 108 deletions

View File

@@ -162,18 +162,9 @@ function M.setup(opts)
if M._once then
return
end
Diff.setup({
debug = false, -- log output to console
default_mappings = Config.mappings.diff, -- disable buffer local mapping created by this plugin
default_commands = true, -- disable commands created by this plugin
disable_diagnostics = true, -- This will disable the diagnostics in a buffer whilst it is conflicted
list_opener = "copen",
highlights = Config.highlights.diff,
})
local selection = Selection:new()
selection:setup()
M.selection = selection
Diff.setup()
M.selection = Selection:new():setup()
-- setup helpers
H.autocmds()