summaryrefslogtreecommitdiff
path: root/fnl/config/util.fnl
blob: dbd635f5dae5e785ed751195976fdfe4c04bece0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
;; Utility functions.
(module util {autoload {a aniseed.core nvim aniseed.nvim}})

(defn telescope-ext [ext fun opts]
      (let [telescope (require :telescope)
            themes (require :telescope.themes)
            theme (. opts :theme)]
        ((. (. (. telescope :extensions) ext) fun) ((. themes theme) opts))))

(defn telescope-builtin [builtin opts]
      (let [telescope (require :telescope.builtin)
            themes (require :telescope.themes)
            theme (. opts :theme)]
        ((. telescope builtin) ((. themes theme) opts))))