summaryrefslogtreecommitdiff
path: root/fnl/util.fnl
blob: febecbda08972fe105f4d413336945bd677b4eae (plain)
1
2
3
4
5
6
7
8
;; Utility functions.
(module util)

(defn load-plugin [name]
  (let [(ok? val-or-err) (pcall require name)]
    (if ok?
      (val-or-err)
      (vim.notify (.. "Could not load config: " val-or-err) vim.log.levels.WARN))))