diff options
| author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-19 21:38:33 +0200 |
|---|---|---|
| committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2023-09-19 21:38:33 +0200 |
| commit | 0e6c6c5e804eb765c34610586fca6b594e90bada (patch) | |
| tree | 5f95c76a712502eb2dab1787219dad70112c7c35 /fnl/plugins/editor/telescope.fnl | |
| parent | 7cf3d6d23b1e82577445a65018918f0b5c588c43 (diff) | |
Optimize startup
Diffstat (limited to 'fnl/plugins/editor/telescope.fnl')
| -rw-r--r-- | fnl/plugins/editor/telescope.fnl | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/fnl/plugins/editor/telescope.fnl b/fnl/plugins/editor/telescope.fnl index dafb48c..8f2bff3 100644 --- a/fnl/plugins/editor/telescope.fnl +++ b/fnl/plugins/editor/telescope.fnl @@ -1,5 +1,11 @@ ;; Telescope a highly extendable fuzzy finder over lists. +(local extensions [:fzf :frecency :orgmode :projects :git_worktree :harpoon]) + +(fn load-extensions [telescope] + (each [_ extension (ipairs extensions)] + (telescope.load_extension extension))) + (local keys [{1 :mf 2 :<cmd>FindFiles<cr> :desc "Find Files"} {1 :mg 2 "<cmd>Telescope live_grep theme=dropdown<cr>" @@ -130,11 +136,7 @@ :override_generic_sorter true :override_file_sorter true :case_mode :smart_case}}}) - (telescope.load_extension :fzf) - (telescope.load_extension :frecency) - (telescope.load_extension :orgmode) - (telescope.load_extension :projects) - (telescope.load_extension :harpoon))) + (load-extensions telescope))) {1 :nvim-telescope/telescope.nvim :cmd :Telescope |