about summary refs log tree commit diff
path: root/fnl/nvrc/packs/mergetool.fnl
blob: 5a8cfba4b4bec6502b14668f8d111a4cc1953616 (plain)
1
2
3
4
5
6
7
(import-macros {: setv!} :nvrc.macro.set)

(setv! MergetoolSetLayoutCallback
  (fn [split]
    (when (and (= "mr,b" (. split :layout)) (= :b (. split :split)))
      (set vim.wo.diff false)
      (vim.cmd "resize 15"))))