local M = {}

function M.setup()
  require("telescope").load_extension "command_palette"
  -- CpMenu = {
  --   {
  --     "File",
  --     { "entire selection (C-a)", ':call feedkeys("GVgg")' },
  --     { "save current file (C-s)", ":w" },
  --     { "save all files (C-A-s)", ":wa" },
  --     { "quit (C-q)", ":qa" },
  --     { "file browser (C-i)", ":lua require'telescope'.extensions.file_browser.file_browser()", 1 },
  --     { "search word (A-w)", ":lua require('telescope.builtin').live_grep()", 1 },
  --     { "git files (A-f)", ":lua require('telescope.builtin').git_files()", 1 },
  --     { "files (C-f)", ":lua require('telescope.builtin').find_files()", 1 },
  --   },
  --   {
  --     "Help",
  --     { "tips", ":help tips" },
  --     { "cheatsheet", ":help index" },
  --     { "tutorial", ":help tutor" },
  --     { "summary", ":help summary" },
  --     { "quick reference", ":help quickref" },
  --     { "search help(F1)", ":lua require('telescope.builtin').help_tags()", 1 },
  --   },
  --   {
  --     "Vim",
  --     { "reload vimrc", ":source $MYVIMRC" },
  --     { "check health", ":checkhealth" },
  --     { "jumps (Alt-j)", ":lua require('telescope.builtin').jumplist()" },
  --     { "commands", ":lua require('telescope.builtin').commands()" },
  --     { "command history", ":lua require('telescope.builtin').command_history()" },
  --     { "registers (A-e)", ":lua require('telescope.builtin').registers()" },
  --     { "colorshceme", ":lua require('telescope.builtin').colorscheme()", 1 },
  --     { "vim options", ":lua require('telescope.builtin').vim_options()" },
  --     { "keymaps", ":lua require('telescope.builtin').keymaps()" },
  --     { "buffers", ":Telescope buffers" },
  --     { "search history (C-h)", ":lua require('telescope.builtin').search_history()" },
  --     { "paste mode", ":set paste!" },
  --     { "cursor line", ":set cursorline!" },
  --     { "cursor column", ":set cursorcolumn!" },
  --     { "spell checker", ":set spell!" },
  --     { "relative number", ":set relativenumber!" },
  --     { "search highlighting (F12)", ":set hlsearch!" },
  --   },
  }
end

return M
