This repository has been archived by the owner on Oct 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathtelescope.fnl
29 lines (26 loc) · 1.63 KB
/
telescope.fnl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
(module config.plugin.telescope
{autoload {nvim aniseed.nvim
telescope telescope
themes telescope.themes}})
(telescope.setup {:defaults {:file_ignore_patterns ["node_modules"]
:vimgrep_arguments ["rg"
"--color=never"
"--no-heading"
"--with-filename"
"--line-number"
"--column"
"--smart-case"
"--iglob"
"!.git"
"--hidden"]}
:extensions {:ui-select {1 (themes.get_dropdown {})}}
:pickers {:find_files {:find_command ["rg"
"--files"
"--iglob"
"!.git"
"--hidden"]}}})
(telescope.load_extension "ui-select")
(nvim.set_keymap :n :<leader>ff ":lua require('telescope.builtin').find_files()<CR>" {:noremap true})
(nvim.set_keymap :n :<leader>fg ":lua require('telescope.builtin').live_grep()<CR>" {:noremap true})
(nvim.set_keymap :n :<leader>fb ":lua require('telescope.builtin').buffers()<CR>" {:noremap true})
(nvim.set_keymap :n :<leader>fh ":lua require('telescope.builtin').help_tags()<CR>" {:noremap true})