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
31
|
local key = require("gabrielgio.key")
local builtins = require("telescope.builtin")
local telescope = require("telescope")
telescope.setup{
defaults = {
file_ignore_patterns = {
"vendor/",
".git/"
},
vimgrep_arguments = {
"rg",
"--color=never",
"--no-heading",
"--with-filename",
"--line-number",
"--column",
"--smart-case",
"--hidden"
}
},
}
telescope.load_extension("file_browser")
key.nnoremap("<leader>ff", builtins.find_files)
key.nnoremap("<leader>fs", builtins.live_grep)
key.nnoremap("<leader>fc", ":Telescope lsp_dynamic_workspace_symbols<CR>")
key.nnoremap("<leader>fd", ":Telescope buffers<CR>")
key.nnoremap("<leader>n", ":Telescope file_browser<CR>")
key.nnoremap("<leader>m", ":Telescope file_browser path=%:p:h select_buffer=true<CR>")
|