mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-11 15:12:47 +09:00
Interface with plugin.lua file
This commit is contained in:
8
cmd/micro/plugin.lua
Normal file
8
cmd/micro/plugin.lua
Normal 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
|
||||
Reference in New Issue
Block a user