diff options
| author | 2024-07-24 19:19:26 +0200 | |
|---|---|---|
| committer | 2024-07-24 19:19:26 +0200 | |
| commit | 01586921b3d5f2ac1ccf8196d3ad9b4b3ddd31f3 (patch) | |
| tree | d740ac5e8943e48ee4132efc4633051d6cdf1d48 /dot_config/nvim/fnl/plugins/telescope.fnl | |
| parent | nvim: ignore lazy-lock.json (diff) | |
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?
Diffstat (limited to 'dot_config/nvim/fnl/plugins/telescope.fnl')
| -rw-r--r-- | dot_config/nvim/fnl/plugins/telescope.fnl | 20 |
1 files changed, 20 insertions, 0 deletions
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 (.. :<leader>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")])] |
