You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
820 B

  1. local actions = require('telescope.actions')
  2. require('telescope').setup {
  3. defaults = {
  4. file_sorter = require('telescope.sorters').get_fzy_sorter,
  5. prompt_prefix = ' >',
  6. color_devicons = true,
  7. file_previewer = require('telescope.previewers').vim_buffer_cat.new,
  8. grep_previewer = require('telescope.previewers').vim_buffer_vimgrep.new,
  9. qflist_previewer = require('telescope.previewers').vim_buffer_qflist.new,
  10. mappings = {
  11. i = {
  12. ["<C-x>"] = false,
  13. ["<C-q>"] = actions.send_to_qflist,
  14. },
  15. }
  16. },
  17. extensions = {
  18. fzy_native = {
  19. override_generic_sorter = false,
  20. override_file_sorter = true,
  21. }
  22. }
  23. }
  24. require('telescope').load_extension('fzy_native')