| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 | -- if not package.loaded['which-key'] then--  return-- endlocal status_ok, which_key = pcall(require, "which-key")if not status_ok then  returnendwhich_key.setup(O.plugin.which_key.setup)local opts = O.plugin.which_key.optslocal vopts = O.plugin.which_key.voptslocal mappings = O.plugin.which_key.mappingslocal vmappings = O.plugin.which_key.vmappings;-- if O.plugin.ts_playground.active then--   vim.api.nvim_set_keymap("n", "<leader>Th", ":TSHighlightCapturesUnderCursor<CR>", { noremap = true, silent = true })--   mappings[""] = "Highlight Capture"-- endif O.plugin.zen.active then  vim.api.nvim_set_keymap("n", "<leader>z", ":ZenMode<CR>", { noremap = true, silent = true })  mappings["z"] = "Zen"endif O.plugin.telescope_project.active then  -- open projects  vim.api.nvim_set_keymap(    "n",    "<leader>P",    ":lua require'telescope'.extensions.project.project{}<CR>",    { noremap = true, silent = true }  )  mappings["P"] = "Projects"endif O.plugin.lush.active then  mappings["L"] = {    name = "+Lush",    l = { ":Lushify<cr>", "Lushify" },    x = { ":lua require('lush').export_to_buffer(require('lush_theme.cool_name'))", "Lush Export" },    t = { ":LushRunTutorial<cr>", "Lush Tutorial" },    q = { ":LushRunQuickstart<cr>", "Lush Quickstart" },  }endfor k, v in pairs(O.user_which_key) do  mappings[k] = vendlocal wk = require "which-key"wk.register(mappings, opts)wk.register(vmappings, vopts)
 |