make whichkey lazyloadable by its cmd | fix #2342

This commit is contained in:
siduck 2023-08-27 11:28:56 +05:30
parent 9c013a6aac
commit 3f1e6d71d4

View File

@ -256,6 +256,7 @@ local default_plugins = {
init = function()
require("core.utils").load_mappings "whichkey"
end,
cmd = "WhichKey",
config = function(_, opts)
dofile(vim.g.base46_cache .. "whichkey")
require("which-key").setup(opts)