Allow to call setup on already loaded modules.

This commit is contained in:
Santos Gallegos 2020-09-10 17:57:19 -05:00 committed by Thomas Vigouroux
parent facdb691d9
commit 20b822314d

View file

@ -157,7 +157,7 @@ end
-- @param mod path to module
local function enable_all(mod)
local config_mod = M.get_module(mod)
if not config_mod or config_mod.enable then return end
if not config_mod then return end
for _, bufnr in pairs(api.nvim_list_bufs()) do
enable_module(mod, bufnr)