summaryrefslogblamecommitdiffstats
path: root/.config/nvim/lua/plugins/telescope.lua
blob: 69dcbfd4a223037035613261fe36441c12fd8ef5 (plain) (tree)
1
2
3
4
5
6
7
8
9
10









                                                                           
                                      


                       



                          
                      
                      


                      




                                                                                          
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
remember that computers suck.