mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-29 22:27:13 +09:00
Add automatic linting for Go, Python, C, D, Java, Javascript, Lua
This commit is contained in:
@@ -5,6 +5,7 @@ import (
|
||||
"fmt"
|
||||
"io/ioutil"
|
||||
"os"
|
||||
"runtime"
|
||||
|
||||
"github.com/go-errors/errors"
|
||||
"github.com/layeh/gopher-luar"
|
||||
@@ -215,6 +216,7 @@ func main() {
|
||||
messenger = new(Messenger)
|
||||
view := NewView(buf)
|
||||
|
||||
L.SetGlobal("OS", luar.New(L, runtime.GOOS))
|
||||
L.SetGlobal("view", luar.New(L, view))
|
||||
L.SetGlobal("settings", luar.New(L, &settings))
|
||||
L.SetGlobal("messenger", luar.New(L, messenger))
|
||||
|
||||
Reference in New Issue
Block a user