-
Problem StatementThe undotree plugin doesn't loads during startup. Or, the plugin has a "keys" key. Workaround My configuration of undotree: {
"mbbill/undotree",
keys = {
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
},
} Does someone can help me with this ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hello @Barnoux, The default value for However, your If you do not need to lazy-load using the {
"mbbill/undotree",
init = function()
vim.keymap.set("n", "<leader>u", vim.cmd.UndotreeToggle)
end,
} Best regards! |
Beta Was this translation helpful? Give feedback.
Hello @Barnoux,
The default value for
Config.options.defaults.lazy
isfalse
.Adding the
keys
property to the spec changes thelazy
property of the plugin to true, see plugin.luaHowever, your
keys
definition is not correct. See lazy key mappings.If you do not need to lazy-load using the
keys
property of the Plugin Spec, you can define the key in the init function:Best regards!