Skip to content
This repository has been archived by the owner on Dec 19, 2022. It is now read-only.

suggestions on how to reload keymaps and options #102

Open
matu3ba opened this issue Feb 28, 2022 · 0 comments
Open

suggestions on how to reload keymaps and options #102

matu3ba opened this issue Feb 28, 2022 · 0 comments

Comments

@matu3ba
Copy link
Contributor

matu3ba commented Feb 28, 2022

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant