mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 15:59:56 -06:00
nvim - Set diffopt to be patience algorithm
This commit is contained in:
@@ -83,14 +83,22 @@
|
|||||||
:wildmode "list:longest,list:full"
|
:wildmode "list:longest,list:full"
|
||||||
:wrap false})
|
:wrap false})
|
||||||
|
|
||||||
|
(def- append-val-opts {:diffopt "algorithm:patience"})
|
||||||
|
|
||||||
(defn- set-opt [[opt val]] (tset vim.opt (a.str opt) val))
|
(defn- set-opt [[opt val]] (tset vim.opt (a.str opt) val))
|
||||||
|
|
||||||
|
(defn- set-opt+ [[opt val]]
|
||||||
|
(let [existing-opt-val (a.get nvim.o opt)]
|
||||||
|
(tset vim.opt (a.str opt) (a.str existing-opt-val "," val))))
|
||||||
|
|
||||||
(defn- set-opt-on [opt] (set-opt [opt true]))
|
(defn- set-opt-on [opt] (set-opt [opt true]))
|
||||||
|
|
||||||
(a.map set-opt-on on-opts)
|
(a.map set-opt-on on-opts)
|
||||||
|
|
||||||
(a.map-indexed set-opt val-based-opts)
|
(a.map-indexed set-opt val-based-opts)
|
||||||
|
|
||||||
|
(a.map-indexed set-opt+ append-val-opts)
|
||||||
|
|
||||||
(nvim.ex.syntax :on)
|
(nvim.ex.syntax :on)
|
||||||
;; (nvim.ex.colorscheme :soluarized)
|
;; (nvim.ex.colorscheme :soluarized)
|
||||||
(nvim.ex.colorscheme :solarized8)
|
(nvim.ex.colorscheme :solarized8)
|
||||||
|
|||||||
Reference in New Issue
Block a user