local map = require('cosmic.utils').map local M = {} function M.init() map('n', 'p', ':Telescope find_files', { noremap = true }) map('n', 'f', ':Telescope git_files', { noremap = true }) map('n', 'k', ':Telescope buffers', { noremap = true }) map('n', 's', ':Telescope live_grep', { noremap = true }) map('n', 'gc', ':Telescope git_commits', { noremap = true }) map('n', 'gs', ':Telescope git_status', { noremap = true }) end function M.mappings() local actions = require('telescope.actions') local normal = { n = { ['Q'] = actions.smart_add_to_qflist + actions.open_qflist, ['q'] = actions.smart_send_to_qflist + actions.open_qflist, [''] = actions.toggle_selection + actions.move_selection_next, [''] = actions.toggle_selection + actions.move_selection_previous, ['v'] = actions.file_vsplit, ['s'] = actions.file_split, [''] = actions.file_edit, }, } return normal end return M