nvim-lua-guide icon indicating copy to clipboard operation
nvim-lua-guide copied to clipboard

suggestions on how to reload keymaps and options

Open matu3ba opened this issue 3 years ago • 0 comments

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).

matu3ba avatar Feb 28 '22 14:02 matu3ba