summaryrefslogtreecommitdiff
path: root/fnl/config/window-picker.fnl
blob: c055fb925f20164b6d969194cef527a1dc24d1cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
;; Trim whitespaces on save.
(module config.window-picker {autoload {util config.util nvim aniseed.nvim}})

(def- opts {:other_win_hl_color "#171717"
            :fg_color "#E1E1E1"
            :selection_chars :MNEIOARSTG})

(util.setup :window-picker opts)

(defn- pick-window []
       (let [window-picker (require :window-picker)]
         (let [win (window-picker.pick_window)]
           (if (not= win nil)
               (nvim.set_current_win win)))))

(vim.keymap.set :n :<C-s> (fn []
                            (pick-window)) {})