local map = require('cosmic.utils').map local M = {} M.project_files = function() local opts = {} -- define here if you want to define something local ok = pcall(require('telescope.builtin').git_files, opts) if not ok then require('telescope.builtin').find_files(opts) end end M.init = function() -- navigation map('n', 'sf', 'lua require("cosmic.core.navigation.mappings").project_files()') map('n', 'sp', ':Telescope find_files') map('n', 'sk', ':Telescope buffers') map('n', 'ss', ':Telescope live_grep') -- git navigation map('n', 'ggc', ':Telescope git_commits') map('n', 'ggs', ':Telescope git_status') -- quickfix navigation map('n', 'cp', ':cprev') map('n', 'cn', ':cnext') -- buffer navigation map('n', 'bp', ':bprev') map('n', 'bn', ':bnext') -- tab navigation map('n', 'tp', ':tprev') map('n', 'tn', ':tnext') end return M