diff options
Diffstat (limited to 'fnl/plugins/editor/window-picker.fnl')
-rw-r--r-- | fnl/plugins/editor/window-picker.fnl | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/fnl/plugins/editor/window-picker.fnl b/fnl/plugins/editor/window-picker.fnl index 2820409..2d4b335 100644 --- a/fnl/plugins/editor/window-picker.fnl +++ b/fnl/plugins/editor/window-picker.fnl @@ -1,19 +1,19 @@ ;; Trim whitespaces on save. +(local opts {:other_win_hl_color "#171717" + :fg_color "#E1E1E1" + :selection_chars :MNEIOARSTG}) + (fn pick-window [opts] (let [window-picker (require :window-picker)] (let [win (window-picker.pick_window)] (if (not= win nil) (vim.api.nvim_set_current_win win))))) -{1 :s1n7ax/nvim-window-picker - :event :BufReadPost - :opts {:other_win_hl_color "#171717" - :fg_color "#E1E1E1" - :selection_chars :MNEIOARSTG} - :config (lambda [_ opts] - (let [window-picker (require :window-picker)] - (window-picker.setup opts) - (vim.keymap.set :n :<C-s> - (fn [] - (pick-window)) {})))} +(lambda config [_ opts] + (let [window-picker (require :window-picker)] + (window-picker.setup opts) + (vim.keymap.set :n :<C-s> (fn [] + (pick-window)) {}))) + +{1 :s1n7ax/nvim-window-picker :event :BufReadPost : opts : config} |