gabrielgio.lua @ 73f8ec6c9ab2929bb392f0db5922045a9ad62107

 1local key = require("gabrielgio.key")
 2local builtins = require("telescope.builtin")
 3local telescope = require("telescope")
 4
 5telescope.setup{
 6    defaults = {
 7        file_ignore_patterns = {
 8            'vendor/',
 9            '\\.git/'
10        },
11        vimgrep_arguments = {
12            "rg",
13            "--color=never",
14            "--no-heading",
15            "--with-filename",
16            "--line-number",
17            "--column",
18            "--smart-case",
19            "--hidden"
20        }
21    },
22}
23
24telescope.load_extension("file_browser")
25
26key.nnoremap("<leader>ff", builtins.find_files)
27key.nnoremap("<leader>fs", builtins.live_grep)
28key.nnoremap("<leader>fc", ":Telescope lsp_dynamic_workspace_symbols<CR>")
29key.nnoremap("<leader>fd", ":Telescope buffers<CR>")
30key.nnoremap("<leader>n", ":Telescope file_browser<CR>")
31key.nnoremap("<leader>m", ":Telescope file_browser path=%:p:h select_buffer=true<CR>")