-
Notifications
You must be signed in to change notification settings - Fork 14
/
telescope.fnl
30 lines (30 loc) · 2.08 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
30
[{1 :nvim-telescope/telescope.nvim
:dependencies [:nvim-telescope/telescope-ui-select.nvim
:nvim-lua/popup.nvim
:nvim-lua/plenary.nvim]
:init (fn []
(vim.keymap.set :n :<leader>ff ":lua require('telescope.builtin').find_files()<CR>" {:noremap true})
(vim.keymap.set :n :<leader>fg ":lua require('telescope.builtin').live_grep()<CR>" {:noremap true})
(vim.keymap.set :n :<leader>fb ":lua require('telescope.builtin').buffers()<CR>" {:noremap true})
(vim.keymap.set :n :<leader>fh ":lua require('telescope.builtin').help_tags()<CR>" {:noremap true}))
:config (fn []
(let [telescope (require :telescope)
themes (require :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")))}]