local actions = require('telescope.actions') require('telescope').setup{ defaults = { mappings = { i = { [""] = actions.smart_send_to_qflist + actions.open_qflist, [""] = actions.close, }, }, } } local builtin = require('telescope.builtin') vim.keymap.set('n', 'ff', builtin.find_files, { desc = "Find files" }) vim.keymap.set('n', 'fg', builtin.live_grep, { desc = "Find in live grep" }) vim.keymap.set('n', 'faf', function() require('telescope.builtin').find_files({ hidden = true, additional_args = { "-u" } }) end, { desc = "Find all files(including ignored files)" }) vim.keymap.set('n', 'fag', function() require('telescope.builtin').live_grep({ additional_args = { "-u" } }) end, { desc = "Find in live grep(including ignored files)" }) vim.keymap.set('n', 'fs', builtin.grep_string, { desc = "Find string" }) vim.keymap.set('n', 'fas', function() require('telescope.builtin').grep_string({ additional_args = { "-u" } }) end, { desc = "Find all strings(including ignored files)" }) vim.keymap.set('n', 'fh', builtin.help_tags, { desc = "Find from help" }) vim.keymap.set('n', 'fb', builtin.buffers, { desc = 'Telescope buffers' }) vim.keymap.set('n', 'fh', builtin.help_tags, { desc = 'Telescope help tags' }) vim.keymap.set("n", "cn", "cnext",{ desc = 'Quick Fix Next' }) vim.keymap.set("n", "cp", "cprevious",{ desc = 'Quick Fix Previous' })