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
|
require('telescope').setup{
defaults = {
borderchars = { '─', '│', '─', '│', '┌', '┐', '┘', '└'}
}
}
require('telescope').load_extension('aerial')
local opt = { noremap=true }
local keybinds = {
{'f/', 'current_buffer_fuzzy_find'},
{'fa', 'aerial'},
{'fb', 'buffers'},
{'ff', 'find_files'},
{'fgb', 'git_branches'},
{'fgc', 'git_commits'},
{'fgg', 'git_files'},
{'fgs', 'git_status'},
{'fh', 'help_tags'},
{'fl', 'live_grep'},
{'fm', 'man_pages'},
{'fo', 'oldfiles'},
{'fr', 'resume'},
}
for _, keybind in pairs(keybinds) do
vim.api.nvim_set_keymap('n', keybind[1], '<cmd>Telescope ' .. keybind[2] .. '<cr>', opt)
end
|