summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/telescope.fnl
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2023-09-24 01:12:42 +0200
commit8ad2f8c9afb308e7a8a1133f578e3352442f770a (patch)
treea7a05ed7c472f186d6380dd918e2318d6d951330 /fnl/plugins/editor/telescope.fnl
parentfd69ec549594d53b9503212d93a9a44f10eef478 (diff)
Restructure plugin configs
Diffstat (limited to 'fnl/plugins/editor/telescope.fnl')
-rw-r--r--fnl/plugins/editor/telescope.fnl66
1 files changed, 34 insertions, 32 deletions
diff --git a/fnl/plugins/editor/telescope.fnl b/fnl/plugins/editor/telescope.fnl
index 83cb4a1..720c69c 100644
--- a/fnl/plugins/editor/telescope.fnl
+++ b/fnl/plugins/editor/telescope.fnl
@@ -1,5 +1,34 @@
;; Telescope a highly extendable fuzzy finder over lists.
+(local dependencies [:nvim-lua/popup.nvim
+ :nvim-telescope/telescope-frecency.nvim
+ {1 :nvim-telescope/telescope-fzf-native.nvim :build :make}
+ :tami5/sqlite.lua
+ {1 :ahmedkhalf/project.nvim
+ :event :VeryLazy
+ :opts {:active true
+ :on_config_done nil
+ :manual_mode false
+ :detection_methods [:patterns]
+ :patterns [:git
+ :_darcs
+ :.hg
+ :.bzr
+ :.svn
+ :Makefile
+ :package.json]
+ :show_hidden false
+ :silent_chdir true
+ :ignore_lsp {}
+ :datapath (vim.fn.stdpath :data)}
+ :config (lambda [_ opts]
+ (let [project (require :project_nvim)]
+ (project.setup opts)))}
+ :nvim-lua/plenary.nvim
+ :nvim-telescope/telescope-fzf-native.nvim
+ :nvim-telescope/telescope-frecency.nvim
+ :joaomsa/telescope-orgmode.nvim])
+
(local extensions [:fzf :frecency :orgmode :projects :git_worktree :harpoon])
(fn load-extensions [telescope]
@@ -13,10 +42,10 @@
((. telescope builtin) ((. themes theme) opts))))
(local user-cmds [[:FindFiles
- (lambda []
- (telescope-builtin :find_files
- {:theme :get_dropdown :previewer false}))
- {:nargs 0}]])
+ (lambda []
+ (telescope-builtin :find_files
+ {:theme :get_dropdown :previewer false}))
+ {:nargs 0}]])
(fn init []
(let [cmds (require :util.cmds)]
@@ -158,32 +187,5 @@
:cmd :Telescope
: init
: config
- :dependencies [:nvim-lua/popup.nvim
- :nvim-telescope/telescope-frecency.nvim
- {1 :nvim-telescope/telescope-fzf-native.nvim :build :make}
- :tami5/sqlite.lua
- {1 :ahmedkhalf/project.nvim
- :event :VeryLazy
- :opts {:active true
- :on_config_done nil
- :manual_mode false
- :detection_methods [:patterns]
- :patterns [:git
- :_darcs
- :.hg
- :.bzr
- :.svn
- :Makefile
- :package.json]
- :show_hidden false
- :silent_chdir true
- :ignore_lsp {}
- :datapath (vim.fn.stdpath :data)}
- :config (lambda [_ opts]
- (let [project (require :project_nvim)]
- (project.setup opts)))}
- :nvim-lua/plenary.nvim
- :nvim-telescope/telescope-fzf-native.nvim
- :nvim-telescope/telescope-frecency.nvim
- :joaomsa/telescope-orgmode.nvim]
+ : dependencies
: keys}