Automatically reload style when saving the project user module

This commit is contained in:
Francesco Abbate
2020-12-10 17:56:53 +01:00
parent 6409b67ea2
commit 9114148b45
6 changed files with 72 additions and 19 deletions
+6
View File
@@ -53,4 +53,10 @@ style.syntax["string"] = { common.color "#f7c95c" }
style.syntax["operator"] = { common.color "#93DDFA" }
style.syntax["function"] = { common.color "#93DDFA" }
style.load = function(module_name)
package.loaded[module_name] = nil
require(module_name)
end
return style