mirror of
https://github.com/elkowar/dots-of-war.git
synced 2025-04-05 06:13:31 +00:00
18 lines
578 B
Fennel
18 lines
578 B
Fennel
(import-macros m :macros)
|
|
(m.al diffview diffview)
|
|
(m.al cb diffview.config)
|
|
(m.al utils dots.utils)
|
|
|
|
(fn setup []
|
|
(diffview.setup
|
|
{:diff_binaries false
|
|
:file_panel {:width 35
|
|
:use_icons false}
|
|
:key_bindings {:view {:<leader>dn (cb.diffview_callback "select_next_entry")
|
|
:<leader>dp (cb.diffview_callback "select_prev_entry")
|
|
:<leader>dd (cb.diffview_callback "toggle_files")}}}))
|
|
[(utils.plugin
|
|
:sindrets/diffview.nvim
|
|
{:cmd ["DiffviewOpen" "DiffviewToggleFiles"]
|
|
:config #setup})]
|
|
|