mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-30 06:37:14 +09:00
allow plugins to list / read runtime files
also renamed most of the new functions to be more specific about what kind of files this is for.
This commit is contained in:
@@ -234,7 +234,7 @@ func main() {
|
||||
InitConfigDir()
|
||||
|
||||
// Build a list of available Extensions (Syntax, Colorscheme etc.)
|
||||
InitExtensionFiles()
|
||||
InitRuntimeFiles()
|
||||
|
||||
// Load the user's settings
|
||||
InitGlobalSettings()
|
||||
@@ -316,6 +316,10 @@ func main() {
|
||||
L.SetGlobal("JobSend", luar.New(L, JobSend))
|
||||
L.SetGlobal("JobStop", luar.New(L, JobStop))
|
||||
|
||||
// Extension Files
|
||||
L.SetGlobal("ReadRuntimeFile", luar.New(L, PluginReadRuntimeFile))
|
||||
L.SetGlobal("ListRuntimeFiles", luar.New(L, PluginListRuntimeFiles))
|
||||
|
||||
LoadPlugins()
|
||||
|
||||
jobs = make(chan JobFunction, 100)
|
||||
|
||||
Reference in New Issue
Block a user