Use doc on_save hooks to reload user module
This commit is contained in:
1 parent
1ce1c114ba
commit
9b27180267
2 files changed
+23
-4
No files matched your search
@@ -67,10 +67,7 @@ end
|
||||
|
||||
local function save(filename)
|
||||
doc():save(filename)
|
||||
if doc().filename == common.normalize_path(USERDIR .. PATHSEP .. "init.lua") then
|
||||
core.reload_module("core.style")
|
||||
core.load_user_directory()
|
||||
end
|
||||
core.on_doc_save(filename)
|
||||
core.log("Saved \"%s\"", doc().filename)
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user