25 lines
1 KiB
Lua
25 lines
1 KiB
Lua
require('telescope').load_extension('session-lens')
|
|
require('telescope').load_extension('heading')
|
|
|
|
local set_keymap = require('../common').set_keymap
|
|
set_keymap('n', '<leader>ff', '<cmd>Telescope find_files<cr>')
|
|
set_keymap('n', '<leader>p', '<cmd>Telescope find_files<cr>') -- alternative cuz im used to it from vscode
|
|
set_keymap('n', '<leader><leader>', '<cmd>Telescope find_files<cr>') -- another alternative, this time from doom emacs
|
|
set_keymap('n', '<leader>fd', '<cmd>Telescope git_files<cr>')
|
|
set_keymap('n', '<leader>fg', '<cmd>Telescope live_grep<cr>')
|
|
set_keymap('n', '<leader>fb', '<cmd>Telescope buffers')
|
|
set_keymap('n', '<leader>fh', '<cmd>Telescope help_tags<cr>')
|
|
set_keymap('n', '<leader>fl', '<cmd>Telescope lsp_document_symbols<cr>')
|
|
set_keymap('n', '<leader>fk', '<cmd>Telescope keymaps<cr>')
|
|
set_keymap('n', '<leader>fm', '<cmd>Telescope heading<cr>')
|
|
|
|
local actions = require('telescope.actions')
|
|
require('telescope').setup{
|
|
defaults = {
|
|
mappings = {
|
|
i = {
|
|
['<esc>'] = actions.close
|
|
},
|
|
},
|
|
}
|
|
}
|