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

suggestions on how to reload keymaps and options #102

@matu3ba

Description

@matu3ba

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions