Interface with plugin.lua file

This commit is contained in:
Zachary Yedidia
2016-04-24 19:52:02 -04:00
parent 87d9221a73
commit e05e993e25
4 changed files with 37 additions and 4 deletions

8
cmd/micro/plugin.lua Normal file
View File

@@ -0,0 +1,8 @@
function onSave()
local handle = io.popen("goimports -w view.go")
local result = handle:read("*a")
handle:close()
view:ReOpen()
messenger:Message(result)
end