;; Telescope a highly extendable fuzzy finder over lists. (local dependencies [:nvim-lua/plenary.nvim {1 :nvim-orgmode/telescope-orgmode.nvim}]) (local extensions [:orgmode :git_worktree :harpoon]) (λ load-extensions [telescope] (each [_ extension (ipairs extensions)] (telescope.load_extension extension))) (local keys [{1 :mb 2 "Telescope buffers theme=dropdown previewer=true initial_mode=normal" :desc "Switch Buffer"} {1 :fC 2 "Telescope commands theme=dropdown" :desc :Commands} {1 :fH 2 "Telescope highlights" :desc :Highlights} {1 :fR 2 "Telescope registers theme=dropdown" :desc :Registers} {1 :gb 2 "Telescope git_branches theme=dropdown" :desc "Checkout Branch"} {1 :fh 2 "Telescope help_tags theme=dropdown" :desc :Help} {1 :fk 2 "Telescope keymaps theme=dropdown" :desc :Keymaps} {1 :fl 2 "Telescope resume theme=dropdown" :desc "Last Search"} {1 :gc 2 "Telescope git_commits theme=dropdown" :desc "Checkout Commit"}]) (λ config [] (let [telescope (require :telescope) icons (require :settings.icons)] (telescope.setup {:defaults {:prompt_prefix (.. " " (. icons :telescope) " ") :selection_caret (.. (. icons :caret) " ") :path_display [:smart] :color_devicons false :pickers {:find_files {:theme :dropdown :disable_devicons true}} :vimgrep_arguments [:rg :--color=never :--no-heading :--with-filename :--line-number :--column :--smart-case :--hidden]}}) (load-extensions telescope))) {1 :nvim-telescope/telescope.nvim :cmd :Telescope : config : dependencies : keys}