nvim-lua-guide
nvim-lua-guide copied to clipboard
suggestions on how to reload keymaps and options
Reloading cached modules does not adjust the keymappings, ie
add_cmd('CRel', function()
local lua_dirs = vim.fn.glob("./lua/*", 0, 1)
for _, dir in ipairs(lua_dirs) do
dir = string.gsub(dir, "./lua/", "")
require("plenary.reload").reload_module(dir)
end
-- TODO keybindings are not reloaded
end, {})
does not work as expected. It would be nice to mention this and ideally explain what to use as workaround (for now).