From a48ba3f7dfe35c7ca622e63a72574134788d68c7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Tue, 17 Jan 2023 00:08:43 +0100 Subject: Update key mappings --- fnl/plugins/editor/telescope.fnl | 59 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 57 insertions(+), 2 deletions(-) (limited to 'fnl/plugins/editor/telescope.fnl') 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 :FindFiles :desc "Find Files"} + {1 :mg + 2 "Telescope live_grep theme=dropdown" + :desc "Find Text"} + {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 :fS + 2 "Telescope grep_string theme=dropdown" + :desc "Find String"} + {1 :fb + 2 "Telescope git_branches theme=dropdown" + :desc "Checkout Branch"} + {1 :ff 2 :FindFiles :desc "Find files"} + {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 :fp + 2 "Telescope projects theme=dropdown" + :desc "Find Project"} + {1 :fr + 2 "Telescope oldfiles theme=dropdown" + :desc "Recent File"} + {1 :ft + 2 "Telescope live_grep theme=dropdown" + :desc "Find Text"} + {1 :js + 2 "Telescope diagnostics theme=dropdown" + :desc "Telescope Diagnostics"} + {1 :gb + 2 "Telescope git_branches theme=dropdown" + :desc "Checkout Branch"} + {1 :gc + 2 "Telescope git_commits theme=dropdown" + :desc "Checkout Commit"} + {1 :lS + 2 "Telescope lsp_dynamic_workspace_symbols" + :desc "Workspace Symbols"} + {1 :n + 2 "Telescope lsp_document_symbols theme=dropdown" + :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} -- cgit v1.2.3-70-g09d2