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