summaryrefslogtreecommitdiff
path: root/fnl/plugins/editor/telescope.fnl
diff options
context:
space:
mode:
Diffstat (limited to 'fnl/plugins/editor/telescope.fnl')
-rw-r--r--fnl/plugins/editor/telescope.fnl59
1 files changed, 57 insertions, 2 deletions
diff --git a/fnl/plugins/editor/telescope.fnl b/fnl/plugins/editor/telescope.fnl
index df8c031..163a322 100644
--- a/fnl/plugins/editor/telescope.fnl
+++ b/fnl/plugins/editor/telescope.fnl
@@ -1,5 +1,59 @@
;; Telescope a highly extendable fuzzy finder over lists.
+(local keys [{1 :mf 2 :<cmd>FindFiles<cr> :desc "Find Files"}
+ {1 :mg
+ 2 "<cmd>Telescope live_grep theme=dropdown<cr>"
+ :desc "Find Text"}
+ {1 :<leader>fc
+ 2 "<cmd>Telescope commands theme=dropdown<cr>"
+ :desc :Commands}
+ {1 :<leader>fH
+ 2 "<cmd>Telescope highlights<cr>"
+ :desc :Highlights}
+ {1 :<leader>fR
+ 2 "<cmd>Telescope registers theme=dropdown<cr>"
+ :desc :Registers}
+ {1 :<leader>fS
+ 2 "<cmd>Telescope grep_string theme=dropdown<cr>"
+ :desc "Find String"}
+ {1 :<leader>fb
+ 2 "<cmd>Telescope git_branches theme=dropdown<cr>"
+ :desc "Checkout Branch"}
+ {1 :<leader>ff 2 :<cmd>FindFiles<cr> :desc "Find files"}
+ {1 :<leader>fh
+ 2 "<cmd>Telescope help_tags theme=dropdown<cr>"
+ :desc :Help}
+ {1 :<leader>fk
+ 2 "<cmd>Telescope keymaps theme=dropdown<cr>"
+ :desc :Keymaps}
+ {1 :<leader>fl
+ 2 "<cmd>Telescope resume theme=dropdown<cr>"
+ :desc "Last Search"}
+ {1 :<leader>fp
+ 2 "<cmd>Telescope projects theme=dropdown<cr>"
+ :desc "Find Project"}
+ {1 :<leader>fr
+ 2 "<cmd>Telescope oldfiles theme=dropdown<cr>"
+ :desc "Recent File"}
+ {1 :<leader>ft
+ 2 "<cmd>Telescope live_grep theme=dropdown<cr>"
+ :desc "Find Text"}
+ {1 :<leader>js
+ 2 "<cmd>Telescope diagnostics theme=dropdown<cr>"
+ :desc "Telescope Diagnostics"}
+ {1 :<leader>gb
+ 2 "<cmd>Telescope git_branches theme=dropdown<cr>"
+ :desc "Checkout Branch"}
+ {1 :<leader>gc
+ 2 "<cmd>Telescope git_commits theme=dropdown<cr>"
+ :desc "Checkout Commit"}
+ {1 :<leader>lS
+ 2 "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>"
+ :desc "Workspace Symbols"}
+ {1 :<leader>n
+ 2 "<cmd>Telescope lsp_document_symbols theme=dropdown<cr>"
+ :desc "Document Symbols"}])
+
(fn setup []
(let [telescope (require :telescope)
actions (require :telescope.actions)]
@@ -81,6 +135,8 @@
{1 :nvim-telescope/telescope.nvim
:cmd :Telescope
+ :config (fn []
+ (setup))
:dependencies [:nvim-lua/popup.nvim
:nvim-telescope/telescope-frecency.nvim
{1 :nvim-telescope/telescope-fzf-native.nvim :build :make}
@@ -109,5 +165,4 @@
:nvim-telescope/telescope-fzf-native.nvim
:nvim-telescope/telescope-frecency.nvim
:joaomsa/telescope-orgmode.nvim]
- :config (fn []
- (setup))}
+ : keys}