diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:03:58 +0200 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2024-07-29 00:03:58 +0200 |
commit | 7096adce11b93787170c09b79a6170d97b4a977c (patch) | |
tree | 1ccb3901136fc31728652e4db9595c1d7b1cccf5 /fnl/plugins/telescope.fnl | |
parent | beb3ed1effdc5dbd047c583598b83615075363b7 (diff) |
Replace fn with λ and how cmds are imported
Diffstat (limited to 'fnl/plugins/telescope.fnl')
-rw-r--r-- | fnl/plugins/telescope.fnl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/fnl/plugins/telescope.fnl b/fnl/plugins/telescope.fnl index e0c0784..7b8f69b 100644 --- a/fnl/plugins/telescope.fnl +++ b/fnl/plugins/telescope.fnl @@ -38,11 +38,11 @@ :harpoon :rest]) -(fn load-extensions [telescope] +(λ load-extensions [telescope] (each [_ extension (ipairs extensions)] (telescope.load_extension extension))) -(fn telescope-builtin [builtin opts] +(λ telescope-builtin [builtin opts] (let [telescope (require :telescope.builtin) themes (require :telescope.themes) theme (. opts :theme)] @@ -54,9 +54,9 @@ {:theme :get_dropdown :previewer false})) {:nargs 0}]]) -(fn init [] - (let [cmds (require :util.cmds)] - (cmds.create-user-cmds user-cmds))) +(λ init [] + (let [{: create-user-cmds} (require :util.cmds)] + (create-user-cmds user-cmds))) (local keys [{1 :mf 2 :<cmd>FindFiles<cr> :desc "Find Files"} {1 :mg @@ -103,7 +103,7 @@ 2 "<cmd>Telescope git_commits theme=dropdown<cr>" :desc "Checkout Commit"}]) -(fn config [] +(λ config [] (let [telescope (require :telescope) actions (require :telescope.actions) icons (require :settings.icons)] |