Fixing telescopes quickfix
This commit is contained in:
parent
f198869fab
commit
1e7f6f9b9f
@ -1,3 +1,14 @@
|
||||
local actions = require('telescope.actions')
|
||||
require('telescope').setup{
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-q>"] = actions.smart_send_to_qflist + actions.open_qflist,
|
||||
["<ESC>"] = actions.close,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
local builtin = require('telescope.builtin')
|
||||
vim.keymap.set('n', '<leader>ff', builtin.find_files, { desc = "Find files" })
|
||||
vim.keymap.set('n', '<leader>fg', builtin.live_grep, { desc = "Find in live grep" })
|
||||
@ -11,3 +22,4 @@ vim.keymap.set('n', '<leader>fas',
|
||||
require('telescope.builtin').grep_string({ additional_args = { "-u" } })
|
||||
end, { desc = "Find all strings(including ignored files)" })
|
||||
vim.keymap.set('n', '<leader>fh', builtin.help_tags, { desc = "Find from help" })
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user