From ac8edfb0db52efe65e01f73ef44133a86571ba02 Mon Sep 17 00:00:00 2001 From: aktersnurra Date: Fri, 17 Apr 2026 23:34:22 +0200 Subject: More based fixes --- fnl/plugins/fff.fnl | 45 ++++++++++++++++++++++++++------------------- 1 file changed, 26 insertions(+), 19 deletions(-) (limited to 'fnl/plugins/fff.fnl') diff --git a/fnl/plugins/fff.fnl b/fnl/plugins/fff.fnl index 3939408..e92e358 100644 --- a/fnl/plugins/fff.fnl +++ b/fnl/plugins/fff.fnl @@ -3,30 +3,37 @@ (import-macros {: autocmd} :macros) (λ init [] - (autocmd :VimEnter - {:callback (λ [] - (when (= (. (vim.fn.argv) 1) nil) - (vim.schedule - (λ [] ((. (require :fff) :find_files)))))) - :once true})) + (autocmd :VimEnter {:callback (λ [] + (when (= (. (vim.fn.argv) 1) nil) + (vim.schedule (λ [] + ((. (require :fff) + :find_files)))))) + :once true})) (local opts {:layout {:height 0.8 - :width 0.7 - :prompt_position :bottom - :preview_position :top - :preview_size 0.8 - :flex {:size 130 :wrap :top} - :show_scrollbar false - :path_shorten_strategy :middle_number}}) + :width 0.7 + :prompt_position :top + :preview_position :bottom + :preview_size 0.8 + :flex {:size 130 :wrap :top} + :show_scrollbar false + :path_shorten_strategy :middle_number}}) {1 :dmtrKovalenko/fff.nvim :build (λ [] - ((. (require :fff.download) :build_binary) - (λ [ok err] - (vim.schedule - (λ [] (vim.notify (if ok "fff.nvim built!" err))))))) + ((. (require :fff.download) :build_binary) (λ [ok err] + (vim.schedule (λ [] + (vim.notify (if ok + "fff.nvim built!" + err))))))) : opts :lazy false : init - :keys [{1 :mf 2 (λ [] ((. (require :fff) :find_files))) :desc "Find Files"} - {1 :mg 2 (λ [] ((. (require :fff) :live_grep))) :desc "Live Grep"}]} + :keys [{1 :mf + 2 (λ [] + ((. (require :fff) :find_files))) + :desc "Find Files"} + {1 :mg + 2 (λ [] + ((. (require :fff) :live_grep))) + :desc "Live Grep"}]} -- cgit v1.2.3-70-g09d2