From 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Chlo=C3=A9=20Vulquin?= Date: Wed, 24 Jul 2024 19:19:26 +0200 Subject: nvim: rewrite config in fennel One file isn't done, and there's also the question of ftplugin and co. One step at a time though, eh? --- dot_config/nvim/fnl/plugins/telescope.fnl | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 dot_config/nvim/fnl/plugins/telescope.fnl (limited to 'dot_config/nvim/fnl/plugins/telescope.fnl') diff --git a/dot_config/nvim/fnl/plugins/telescope.fnl b/dot_config/nvim/fnl/plugins/telescope.fnl new file mode 100644 index 0000000..44aa9d5 --- /dev/null +++ b/dot_config/nvim/fnl/plugins/telescope.fnl @@ -0,0 +1,20 @@ +(import-macros {: tbl : recc} :toast.macros) + +(fn gen [key fun desc] + (tbl (.. :f key) #(recc :telescope.builtin fun) & :desc desc)) + +[(tbl :nvim-telescope/telescope.nvim & + :dependencies [:nvim-lua/plenary.nvim + (tbl :nvim-telescope/telescope-fzf-native.nvim & + :build :make)] + :config (fn [_ opts] + (let [ts (require :telescope)] + (ts.setup opts) + (ts.load_extension :fzf))) + :cmd :Telescope + :keys [(gen :f :find_files "Find File") + (gen :g :live_grep "Live Grep") + (gen :b :buffers "Find Buffer") + (gen :h :help_tags "Find Help") + (gen :c :commands "Find Command") + (gen :t :treesitter "Find Treesitter")])] -- cgit v1.2.3