mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-24 13:22:23 +00:00
Slight cleanup of stuff
This commit is contained in:
parent
5a5de804e3
commit
ea0c5d9b78
3 changed files with 2 additions and 3 deletions
|
@ -61,7 +61,7 @@
|
|||
block (. args (+ i 1))]
|
||||
(a.assoc block 1 name)
|
||||
(when (. block :mod)
|
||||
(a.assoc block :config `#(require ,(. block :mod))))
|
||||
(a.assoc block :config `#((. (require "utils") :safe-require) ,(. block :mod))))
|
||||
(a.assoc block :mod nil)
|
||||
(table.insert use-statements block)))
|
||||
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
bufferline bufferline
|
||||
colors colors}})
|
||||
|
||||
|
||||
; :h bufferline-lua-highlights
|
||||
(let [selected {:guibg colors.neutral_aqua :guifg colors.dark0 :gui ""}
|
||||
visible {:guibg colors.dark1 :guifg colors.neutral_aqua :gui ""}]
|
||||
|
|
|
@ -48,7 +48,7 @@
|
|||
(table.insert result (values l r)))
|
||||
result))
|
||||
|
||||
(defn- safe-require-plugin-config [name]
|
||||
(defn safe-require [name]
|
||||
(xpcall
|
||||
#(require name)
|
||||
#(a.println (.. "Error sourcing " name ":\n" (fennel.traceback $1)))))
|
||||
|
|
Loading…
Reference in a new issue