feat(mini.ai): decouple mini.ai from which-key. Closes #1076

This commit is contained in:
Folke Lemaitre
2023-07-12 17:25:31 +02:00
parent 9fd89701da
commit e212c166b4

View File

@ -173,7 +173,7 @@ return {
config = function(_, opts) config = function(_, opts)
require("mini.ai").setup(opts) require("mini.ai").setup(opts)
-- register all text objects with which-key -- register all text objects with which-key
if require("lazyvim.util").has("which-key.nvim") then require("lazyvim.util").on_load("which-key.nvim", function()
---@type table<string, string|table> ---@type table<string, string|table>
local i = { local i = {
[" "] = "Whitespace", [" "] = "Whitespace",
@ -214,7 +214,7 @@ return {
i = i, i = i,
a = a, a = a,
}) })
end end)
end, end,
}, },
} }