aboutsummaryrefslogtreecommitdiffstats
path: root/nvim/after/plugin/telescope.lua
blob: 9f0215d6ec967827099d606bf0b754b8527e571b (plain) (blame)
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
local Remap = require("keymap")
local builtin = require('telescope.builtin')
local nnoremap = Remap.nnoremap

-- find file
nnoremap("<Leader>ff", function()
    builtin.find_files()
end)

-- find buffer
nnoremap("<Leader>fb", function()
    builtin.buffers()
end)

-- grep find
nnoremap("<Leader>gf", function()
    builtin.live_grep()
end)

-- lsp find refrences
nnoremap("<Leader>fr", function()
    builtin.lsp_references()
end)

-- -- find git, lists git pickers
-- TODO: write picker
-- nnoremap("<leader>fg", function()
--     builtin.
-- end)