config.lua 969 B

12345678910111213141516171819202122232425262728293031
  1. local function config()
  2. require('telescope').setup({
  3. extensions = {
  4. -- ["ui-select"] = {
  5. -- require("telescope.themes").get_dropdown {
  6. -- -- even more opts
  7. -- }
  8. --
  9. -- -- pseudo code / specification for writing custom displays, like the one
  10. -- -- for "codeactions"
  11. -- -- specific_opts = {
  12. -- -- [kind] = {
  13. -- -- make_indexed = function(items) -> indexed_items, width,
  14. -- -- make_displayer = function(widths) -> displayer
  15. -- -- make_display = function(displayer) -> function(e)
  16. -- -- make_ordinal = function(e) -> string
  17. -- -- },
  18. -- -- -- for example to disable the custom builtin "codeactions" display
  19. -- -- do the following
  20. -- -- codeactions = false,
  21. -- -- }
  22. -- }
  23. }
  24. })
  25. require('telescope').load_extension('dap')
  26. require('telescope').load_extension('ui-select')
  27. end
  28. config()