From 7096adce11b93787170c09b79a6170d97b4a977c Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 29 Jul 2024 00:03:58 +0200 Subject: Replace fn with λ and how cmds are imported MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- fnl/plugins/window-picker.fnl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'fnl/plugins/window-picker.fnl') diff --git a/fnl/plugins/window-picker.fnl b/fnl/plugins/window-picker.fnl index 046e927..6746f00 100644 --- a/fnl/plugins/window-picker.fnl +++ b/fnl/plugins/window-picker.fnl @@ -4,16 +4,16 @@ :fg_color "#E1E1E1" :selection_chars :MNEIOARSTG}) -(fn pick-window [] +(λ pick-window [] (let [window-picker (require :window-picker)] (let [win (window-picker.pick_window)] (if (not= win nil) (vim.api.nvim_set_current_win win))))) -(fn config [] +(λ config [] (let [window-picker (require :window-picker)] (window-picker.setup opts) - (vim.keymap.set :n : (fn [] + (vim.keymap.set :n : (λ [] (pick-window)) {}))) {1 :s1n7ax/nvim-window-picker :event [:BufReadPost :BufNewFile] :version :2.0.0 : config} -- cgit v1.2.3-70-g09d2