From 1e7f6f9b9f9415a7c3c64b854a218e70b7f258e9 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Tue, 8 Oct 2024 16:25:35 -0400 Subject: [PATCH] Fixing telescopes quickfix --- after/plugin/telescope.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/after/plugin/telescope.lua b/after/plugin/telescope.lua index bfc4dab..f86d0ad 100644 --- a/after/plugin/telescope.lua +++ b/after/plugin/telescope.lua @@ -1,3 +1,14 @@ +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" }) @@ -11,3 +22,4 @@ vim.keymap.set('n', 'fas', 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" }) +