Pass the view into plugin callbacks

This commit is contained in:
Zachary Yedidia 2016-08-25 16:35:03 -04:00
parent ec0833b09c
commit d6da2dfeca
6 changed files with 145 additions and 150 deletions

File diff suppressed because it is too large Load diff

View file

@ -432,7 +432,7 @@ func runtimeHelpPluginsMd() (*asset, error) {
return a, nil
}
var _runtimePluginsAutocloseAutocloseLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xb4\x56\x5f\x4b\xe3\x40\x10\x7f\xef\xa7\x18\xe2\x43\x13\x4c\x0b\xbd\x47\x21\x07\xea\x81\x08\x72\x77\xc8\x71\xde\xa1\x3e\x6c\x37\x93\x66\x31\xce\x96\xd9\xdd\xd6\x43\xfc\xee\xc7\x26\x31\x4d\xda\xa6\x7f\x40\x7d\x88\x9b\xec\xfc\x66\x7e\xf3\xbf\x99\x23\x69\x95\x26\x90\xb9\xe0\x73\x1b\x1a\xcb\x31\xa8\x68\x00\x00\xc0\x68\x1d\x13\x18\xcb\x8a\x66\x63\xe3\xa6\xf5\x6d\x29\x80\x94\x0e\x06\x2a\x83\x2b\xb4\x3f\xe6\x5e\x43\x18\x08\x67\xb5\x2c\xb4\xc1\x20\x82\x24\x01\x52\x05\xd8\x1c\xa9\xd4\x75\x9e\xa6\x9b\x62\x31\x58\x76\x58\xeb\x2a\xb4\x14\x05\x34\x97\x3f\x85\x62\x03\x09\xbc\x06\x0f\xc1\x43\x10\xc4\x10\x0c\x87\xfe\x19\x46\xfe\xf9\xfa\xe6\x9f\xf7\x8f\xc1\x5b\x0b\xf7\x1d\x97\x85\xa2\x16\x72\x43\x76\xd0\xb8\xab\xe9\xd6\x11\x86\x5c\x79\xaa\x32\x20\x6d\xfb\x7c\x69\x9c\x58\x05\xa5\x7c\x2d\x69\xfb\x43\x45\x61\x01\x09\x5c\x3a\xfe\xad\x70\x19\x56\x6a\x33\xcd\xa0\x20\x81\x49\x0c\x27\x6b\x8e\xa5\xba\xd1\xa8\x32\x60\x1f\xaf\x3a\x03\x5d\xc1\x7b\xf5\x18\xc3\x97\x35\x0e\x2b\x9b\xd2\xf1\x8d\x22\x84\x04\x16\xe3\x0b\x97\x9d\xf9\x97\x70\x31\xbe\x74\x6c\x34\x8f\xff\x46\x83\x0e\x46\x65\xef\x46\x6a\x5c\x0c\x8d\xec\x9f\xd3\x49\x74\x3c\x0b\xff\xb7\x38\xbb\x10\xf2\xc9\xcc\x85\xc4\x30\x13\x85\xc1\x68\x8b\x48\x65\xe5\x56\xcd\x72\xdb\x27\x34\x65\x14\x4f\x9d\xaf\x4d\x80\x5b\x0e\xac\x08\xc3\x57\x98\x80\xa0\x14\xc2\x6b\x73\xa7\x39\xbd\xcc\x05\x87\xfd\xfe\x8d\x26\x51\x04\x9a\x77\x44\x60\xb4\x2f\x02\x5e\xc3\xd6\x10\x6c\xa7\xbe\xed\xbc\x3f\xd9\x93\x8f\x4b\x76\x2b\x56\x49\x02\x27\xef\x78\xcd\x65\xb5\x1f\x14\xb5\xd3\x5e\x9f\x47\x23\xff\x1d\x86\xa3\x21\xe4\xc8\x08\xca\x80\xd5\x90\x22\x63\x86\x24\xb1\xbc\x9c\x6b\x45\x16\xd9\x5f\x34\x2a\x6f\xb4\x84\x65\xae\x64\xee\x11\xde\xff\x67\x61\x95\x14\x45\xf1\x0f\x9e\x45\x8a\xdb\xec\x2c\x73\x24\x90\x9a\x16\xc8\x56\xd1\x0c\x66\xda\x0f\x25\x27\x6d\x69\xb2\x70\x62\x1b\xe8\xda\x02\x21\xa6\xa5\xc8\x14\x6b\x62\xec\xa9\xa5\x30\x45\x29\x9c\xa9\x38\x36\x23\x01\x5f\xe6\xe8\x55\x0a\x20\x4d\x0d\xf5\xca\xd0\x66\x45\x97\x19\xb8\x26\x83\x6c\xc3\x51\xdb\xb9\x78\x67\x0b\x1d\x5a\xf6\xeb\x67\xff\xbf\x6c\x87\x86\xee\x9c\xb1\x32\x5f\x8f\xbd\xf0\x53\x47\xd9\x81\x15\xd8\x11\xf5\x13\x16\x92\x1d\x0d\xd7\x96\x27\x7c\xb1\x7b\x01\xa7\x93\x36\x64\xe9\xa7\xfc\x15\xda\x1b\x14\xa9\xa2\xd9\x5d\xae\x2c\x56\x63\xa8\x86\xd6\x1d\xb1\x3e\x86\x3b\x7b\xa2\x3b\x88\x1b\xd6\x9d\x0e\x6d\x03\x7a\x7b\xd4\x07\xbe\xf1\x61\x37\xbc\x7f\x92\x76\x33\xda\x3b\x4d\x2b\xb1\x5f\x62\xda\x2b\xb2\xa3\x3c\x83\x07\x0a\x60\x3c\x86\xa5\xd9\xc4\xd5\x2b\xbf\xd4\x7a\x50\x4d\xb6\x7f\x28\xf8\x65\xbe\x59\xa4\xab\xe5\xf0\x69\x05\x7a\xc4\xb2\x3d\xa2\x8e\xe1\x23\x36\xa6\xdf\x4f\x3b\x1a\xe0\xf8\x55\xb0\x38\xfb\x86\x05\xda\x8d\xe2\xd8\x9b\x94\xff\x01\x00\x00\xff\xff\xa6\x33\xae\x4d\xea\x09\x00\x00")
var _runtimePluginsAutocloseAutocloseLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xbc\x55\x51\x4b\xe3\x40\x10\x7e\xef\xaf\x18\xe2\x43\x13\x4c\x0b\xbd\x47\x21\x07\xea\x81\x08\x72\x77\xc8\x81\x77\xa8\x0f\xdb\xcd\xa4\x59\x8c\xb3\x65\x76\xd3\x7a\x88\xff\xfd\xd8\x24\xae\x89\x4d\xd2\x0a\x72\x7d\x48\x37\xd9\xf9\x66\xe6\x9b\x9d\xfd\x26\x2b\x49\x5a\xa5\x09\x64\x2e\xf8\xd4\x86\xc6\x72\x0c\x2a\x9a\x00\x00\x30\xda\x92\x09\x8c\x65\x45\xab\xb9\x29\x97\xcd\x6e\x65\x80\x94\x4e\x26\x2a\x83\x0b\xb4\x3f\xd6\xce\x43\x18\x88\xd2\x6a\x59\x68\x83\x41\x04\x49\x02\xa4\x0a\xb0\x39\x52\xe5\xeb\x34\x4d\x77\xcd\x62\xb0\x5c\x62\xe3\xab\xd0\x52\x14\xe0\x37\x7f\x0a\xc5\x06\x12\x78\x0e\xee\x82\xbb\x20\x88\x21\x98\x4e\xdd\x33\x8c\xdc\xf3\xf9\xc5\x3d\x6f\xef\x83\x97\x16\xee\x3b\x6e\x0b\x45\x2d\xe4\x8e\xed\xc4\xd3\xd5\x74\x5d\x12\x86\x1c\xc3\xa6\x26\xab\x32\x20\x6d\x87\xe8\x78\x1e\x6f\x75\xa9\x5e\xab\xcc\xdd\x22\xd3\x0c\x0a\x12\x58\xc4\x70\xf4\x8e\x43\xaa\x3d\x52\x65\xc0\xae\x34\x4d\xb1\xbb\x86\xb7\xea\x3e\x86\x2f\xef\x62\xb9\x5f\xcd\x50\x96\x7c\xa5\x08\x21\x81\xcd\xfc\xac\xcc\x4e\xdc\x4b\xb8\x99\x9f\x97\x6c\x34\xcf\xff\x44\x93\x0e\x46\x65\xaf\x41\x1a\x5c\x0c\xde\xf6\xf7\xf1\x22\xfa\x78\x16\xee\xb7\x39\x39\x13\xf2\xc1\xac\x85\xc4\x30\x13\x85\xc1\xa8\xc7\xa4\x8e\x72\xad\x56\xb9\x1d\x32\x5a\x32\x8a\x87\xce\x57\x5f\xc8\x16\x81\xb7\x84\xe1\x2b\x2c\x40\x50\x0a\xe1\xa5\xb9\xd1\x9c\x9e\xe7\x82\xc3\x61\x7e\xb3\x45\x14\x81\xe6\x91\x0a\xcc\xf6\x55\xc0\x79\xe8\x2d\x41\x7f\xea\x7d\xeb\xfd\x87\xbd\xf8\xbc\xc3\x6e\xd5\x2a\x49\xe0\xe8\x15\xaf\xb9\xea\xea\x83\xaa\x76\x3c\xc8\x79\x36\x73\xdf\x61\x3a\x9b\x42\x8e\x8c\xa0\x0c\x58\x0d\x29\x32\x66\x48\x12\xab\xcd\xb5\x56\x64\x91\xdd\x86\x77\x79\xa5\x25\x6c\x73\x25\x73\x87\x70\xfc\x1f\x85\x55\x52\x14\xc5\x5f\x78\x14\x29\xf6\xc5\xd9\xe6\x48\x20\x35\x6d\x90\xad\xa2\x15\xac\xb4\xd3\x9f\x52\xda\x2a\x64\x51\x8a\x3e\xd0\xa5\x05\x42\x4c\x2b\x93\x25\x36\x89\xb1\x4b\x2d\x85\x25\x4a\x51\x9a\x3a\x47\x7f\xfb\xf1\x69\x8d\xce\xa5\x00\xd2\xe4\x53\xaf\x03\xed\x76\x74\x75\x02\x97\x64\x90\x6d\x38\x6b\x93\x8b\x47\xaf\xd0\xa1\x6d\xff\x7e\xed\xfe\xab\xeb\xe0\xd3\x5d\x33\xd6\xe1\x1b\x85\x0b\x3f\x47\xb3\x0e\x6c\xb5\x8e\xa9\x53\x4d\x48\x46\x6e\x56\xdb\x9e\xf0\xc9\xee\x05\x1c\x2f\xda\x90\xad\x53\xee\x0b\xb4\x57\x28\x52\x45\xab\x9b\x5c\x59\xac\xf5\xa6\x81\x46\xfd\x7a\xdb\xd1\xfe\xae\xe2\xfa\xac\x3b\x57\xb1\x0d\x18\xbc\x8c\xae\xc0\x9e\xc3\x38\x7c\x58\x32\xbb\x47\x37\x28\x9b\xb5\xd9\x2f\xb1\x1c\x34\x19\xe9\xc3\xe0\x8e\x02\x98\xcf\x61\x6b\x76\x71\xcd\x18\xaf\xbc\x1e\xd4\x7c\xed\xe1\xef\x06\xf4\x6e\x37\xbe\x4d\x81\xff\x39\x3d\x3f\xd0\xaf\xf0\x19\x23\xd0\x0d\x9c\x91\x46\xff\xb8\xb6\x6f\x4e\xbe\x61\x81\x76\xa7\x09\xf6\x16\xff\x5f\x00\x00\x00\xff\xff\x6a\x11\xe1\x10\xa6\x09\x00\x00")
func runtimePluginsAutocloseAutocloseLuaBytes() ([]byte, error) {
return bindataRead(
@ -447,12 +447,12 @@ func runtimePluginsAutocloseAutocloseLua() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "runtime/plugins/autoclose/autoclose.lua", size: 2538, mode: os.FileMode(420), modTime: time.Unix(1472154418, 0)}
info := bindataFileInfo{name: "runtime/plugins/autoclose/autoclose.lua", size: 2470, mode: os.FileMode(420), modTime: time.Unix(1472157233, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _runtimePluginsGoGoLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xa4\x53\x5b\x8b\xd5\x30\x10\x7e\xef\xaf\x18\x02\x42\xa2\x3d\x65\x9f\x0b\x7d\xd0\x05\x2f\xe0\xb2\xe2\x8a\x2f\xa2\x90\x6d\x27\x6d\x30\x4d\x4a\x32\xdd\xa3\x88\xff\x5d\x92\xd6\x9e\xf6\x5c\xf0\xb2\x79\x69\x9b\x7c\xf3\x5d\x66\x52\xad\xe0\x15\xd2\xed\x40\xda\x59\xce\x5a\xa7\xfb\xc1\x79\x0a\x4c\x40\x55\x81\xd5\x06\xa8\x43\x9b\x01\x00\x3c\x6f\x9a\x53\x58\x0e\x4a\x9a\x80\x22\x43\xdb\x64\xc7\x5c\xaa\xa7\x3f\xf1\x44\x48\x0e\xe4\xc7\x99\x22\xbb\x91\x5f\xf1\xda\xf5\xbd\xb4\xcd\x56\x87\xb5\xae\x58\x7f\x5f\x89\x63\xec\xc4\x35\xe1\xa6\xf7\x2b\x91\x65\x6a\xb4\x75\x54\x03\x67\x3f\x6a\xdc\xdf\x0e\x68\xf9\x83\xc6\xbd\x48\x66\x76\x3b\xe8\x31\x04\xb4\x2d\xfa\xf2\x06\x43\x90\x2d\x72\xf6\xfa\x0d\x9b\x8e\xb5\x82\x88\x2d\x5e\x8c\xaa\x7c\xa9\x0d\x7e\xf8\x3e\x20\x4f\x91\x58\xeb\xd8\x21\x53\x5c\x77\x48\x6f\x5d\x2d\xcd\xef\x70\x24\xef\x03\xb9\x30\xc8\x1a\x93\x7f\xa7\x14\xcb\xe1\x20\x1d\xe3\xa6\xc8\x2b\x87\x77\xf2\x01\xf9\x22\x7d\x3d\xfa\x68\x99\x8b\xbf\xd2\xbf\x3c\xc9\x0d\x2c\xae\xe5\x70\xd6\x4a\x76\x4c\xc0\xf3\x03\x3c\x53\xae\x7a\x5a\x97\xda\xe6\x42\xa2\x35\x72\x49\x53\xa6\x94\xf3\xbd\x89\x27\x26\xb6\x0d\x3a\x69\x1b\x83\x50\x81\x76\xc5\xe0\xe2\x98\x26\x07\xb0\xdb\x03\x83\xa2\xd8\xb6\xa3\x78\x27\xa9\x5b\x97\x7b\x0c\xa3\x21\xa8\x66\x9e\xd2\xa3\x6c\x38\x7b\x2a\xe7\x49\xce\xbb\xb5\x71\x21\x76\xf8\xc8\xd1\x7b\x4c\xf7\x42\x9c\xd8\xdf\xf6\xe9\xbf\x22\xcc\x14\xff\x1a\x23\x0c\x46\x13\x3f\x09\x93\x03\x2b\x1f\x13\x69\xa2\x0d\xe4\x73\x08\x38\x9c\x55\xfe\xf1\x73\xb3\xdb\xe2\x37\xa8\x80\x33\xfe\xe9\xcb\x93\xf0\xf9\x99\x60\xa2\x54\xce\xf7\x92\xf8\x42\xa0\x9c\x07\x94\x75\x07\xda\x42\x20\x5f\xb6\xbd\xa4\xba\xe3\xa9\x56\x40\xe3\x96\x9b\x42\xf2\xde\x60\xa1\x6d\x40\x4f\x7c\x12\xcc\x53\xe5\xe1\x97\x88\x4f\x8f\x34\x7a\x3b\x3b\x4a\x01\x7e\x05\x00\x00\xff\xff\x44\x8b\x28\x77\xa7\x04\x00\x00")
var _runtimePluginsGoGoLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\xa4\x53\x5d\x8b\xd5\x30\x10\x7d\xef\xaf\x18\x02\x42\xa2\xb5\xec\x73\xa1\x0f\xba\xa0\x2f\xca\x8a\x2b\xbe\x88\x42\xb6\x9d\xb4\xc1\x34\x09\xc9\x74\xaf\x22\xfe\x77\x49\x5a\x7b\xdb\x7b\xef\xe2\xc7\xe6\xa5\xcd\xe4\xcc\x99\x73\x66\x12\xad\xe0\x35\xd2\x8d\x27\xed\x2c\x67\xbd\xd3\xa3\x77\x81\x22\x13\xd0\x34\x60\xb5\x01\x1a\xd0\x16\x00\x00\x2f\xba\xee\x1c\x56\x82\x92\x26\xa2\x28\xd0\x76\xc5\x29\x97\x1a\xe9\x4f\x3c\x09\x52\x02\x85\x69\xa1\x28\xde\xca\xaf\x78\xed\xc6\x51\xda\x6e\x5f\x87\xf5\xae\xda\xee\xaf\xc4\x29\x76\xe6\x9a\x71\xf3\xff\x95\x28\x0a\x35\xd9\x36\x55\x03\x67\x3f\x6a\x3c\xdc\x78\xb4\xfc\x5e\xe3\x41\x64\x31\x5a\x41\xda\x54\x2f\x27\x55\xbf\xd2\x06\x3f\x7c\xf7\xc8\xb3\x66\xd6\x3b\x76\x14\x9d\xd6\x2d\xd2\x1b\xd7\x4a\xf3\x5b\x3d\xc9\xbb\x48\x2e\x7a\xd9\x62\x16\xe8\x94\x62\x25\x1c\xb9\x93\x9f\xec\x69\x23\xe1\x56\xde\xe3\xbe\xfc\xf5\x14\x92\x2e\x2e\xfe\x4a\xc3\xc3\xe3\xda\xc1\xd2\x5a\x0f\xb9\x58\xe3\x68\x22\x5e\x9e\xd2\x85\x74\x35\xd2\x36\xd5\x76\x0f\xb8\xda\x22\x57\x37\x75\x76\xba\x5c\x8e\x74\x62\x52\xeb\x60\x90\xb6\x33\x08\x0d\x68\x57\x79\x97\x66\x31\x2b\x80\xe7\x07\x60\x50\x55\xfb\x76\x54\xef\x24\x0d\xdb\xf4\x80\x71\x32\x04\xcd\xc2\x53\x07\x94\x1d\x67\x4f\x25\x9b\x41\x4b\xb4\x35\x2e\x22\x17\xc5\x89\xa2\xf7\x98\x87\x2f\xce\xe4\xef\xfb\xf4\x5f\x16\x16\x8a\x7f\xb5\x11\xbd\xd1\xc4\xcf\xcc\x94\xc0\xea\xc7\x58\x9a\x69\x23\x85\x12\x22\xfa\x8b\x95\x7f\xfc\xdc\x45\x7b\xfc\x06\x0d\x70\xc6\x3f\x7d\x79\x12\x3f\x3f\x13\x4c\xd4\xca\x85\x51\x12\x5f\x09\x94\x0b\x80\xb2\x1d\x40\x5b\x88\x14\xea\x7e\x94\xd4\x0e\x3c\xe7\x0a\xe8\xdc\x7a\x53\x48\xde\x19\xac\xb4\x8d\x18\x88\xcf\x05\xcb\x9c\x79\x7c\x16\xe9\x1b\x90\xa6\x60\x17\x45\xd9\xc0\xaf\x00\x00\x00\xff\xff\xbd\x48\xf1\x4f\x8c\x04\x00\x00")
func runtimePluginsGoGoLuaBytes() ([]byte, error) {
return bindataRead(
@ -467,12 +467,12 @@ func runtimePluginsGoGoLua() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "runtime/plugins/go/go.lua", size: 1191, mode: os.FileMode(420), modTime: time.Unix(1472155236, 0)}
info := bindataFileInfo{name: "runtime/plugins/go/go.lua", size: 1164, mode: os.FileMode(420), modTime: time.Unix(1472157205, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}
var _runtimePluginsLinterLinterLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x55\x51\x6b\xe4\x36\x10\x7e\xdf\x5f\x31\x88\x1a\xe4\xc4\x76\xca\x3d\x2e\xec\xc3\x35\xb4\x07\xe5\xae\x57\xc8\xb5\xf7\xd0\xf6\x8a\xd6\x1a\x79\xd5\xc8\x92\x91\xe4\x6c\x96\xd2\xff\x5e\x24\x79\xbd\xb6\xd7\x7b\x5c\x20\x64\x22\xcd\x7c\xdf\xcc\x37\xe3\x91\x14\xf0\x0e\xfd\xc7\xce\x4b\xa3\x29\x51\x52\x7b\xb4\x24\x87\xdd\x0e\xb4\x54\xe0\x0f\xa8\x37\x00\x00\x6f\x39\x5f\xf8\x14\xe0\x6d\x8f\xf9\x06\x35\xdf\x6c\x3e\xb0\x67\x7c\x34\x6d\xcb\x34\x4f\x0e\xa4\x80\xc1\xb1\xb2\xbd\x7e\x7f\x0e\xf9\x3e\xdf\x6c\x44\xaf\xeb\x80\x04\xe3\x05\xcd\x23\xc7\x63\x6f\x7f\x97\x78\xa4\xf9\xf6\x89\xbd\x20\x15\x4c\x39\x4c\x37\xca\xd4\x4c\x81\xf0\xb0\xbb\x38\x55\x3f\xf4\xa2\xfa\x49\x2a\xfc\x74\xea\x70\xea\x25\x15\x5e\xf9\xfd\xca\xfc\x61\xe2\xc3\xf1\x45\xf7\x4a\xc1\x0e\xc8\x03\xc7\x97\x87\xf0\x0f\x89\xf7\x52\xc0\xc7\xa7\x50\x3d\x39\x4a\xcd\xcd\xd1\x91\x8b\x06\xe1\x67\x12\xf9\xcb\x6f\xef\x53\x4c\x50\x60\x88\x0d\x29\xee\x80\x34\x66\x11\x16\xa4\xa0\xa4\x31\xfb\x5e\x2a\x1e\xb4\x69\x0c\x44\x1b\x4a\x03\x04\xaa\xea\x0c\x5c\x00\xc9\xc4\x36\x53\x5b\xc8\x5a\x92\x5f\xc5\x9f\xa5\x4d\x56\x8a\xbc\xae\x74\x04\xc9\xf8\xfd\x04\x08\x95\xc3\x4b\x8e\xaa\x67\xab\x49\xaa\x9e\xd5\x07\xac\x9f\x63\x07\x07\x1b\xca\x52\x9b\xb2\x36\xca\xd8\xc4\x19\x44\xfe\x26\x96\xee\xe4\x0f\x46\xaf\x12\x75\x27\xa1\xd8\x33\xba\x40\x74\xb6\x57\xd0\x6f\x21\xd7\xeb\x12\xd7\x75\xd4\xa7\xae\xa1\x14\xee\xa4\x3d\x7b\x2d\x8d\x56\x27\x28\x3f\x33\xa5\xa0\xfc\x8c\xaf\xde\xb2\x1b\x45\x54\xb7\xeb\xe0\xab\x6c\xbc\x8d\xcd\xe4\x2d\x87\xa4\xce\xce\x08\x01\xa5\x29\xa1\x3c\x42\x79\x94\x50\xd6\x0b\xaa\x8c\x66\x2a\xcb\xbf\xc6\xf4\x0f\x7b\x59\x6f\x4c\xb8\x88\xc5\x45\x63\x4d\x29\xb4\xd6\xd8\xaf\x02\xbb\xda\xca\xce\xaf\xc3\xbb\xc3\x30\x5c\xc9\x5a\x12\x04\x37\x84\x4c\x15\xd5\x7d\x31\xa1\xd0\x3c\x6d\x80\xf1\xab\x36\x3a\x7e\xbd\xf9\xf9\x93\x58\xdb\x2e\x33\xfa\xe5\x1a\x08\x59\x8f\x97\x97\x9d\xf0\xa8\x90\xd9\xb7\x4a\xbd\xeb\xbd\x47\xfb\x01\x9d\x63\x0d\x3a\x7a\x2b\x8d\x58\x54\x22\x2c\xa0\x6e\x79\x91\xd4\x11\xc6\xb6\xcc\x2f\xf7\x4d\xc4\x5e\x00\xa7\xd8\x7c\x13\x5d\x7f\x36\xfb\x27\xcf\xac\xa7\x11\x89\x90\xe1\x77\xd8\x70\x46\xff\xf8\x2a\x83\x74\x67\xbe\x19\xd5\x52\x9e\xe0\x4b\x4d\xef\xbb\xde\xdf\x88\xb8\x2c\xaa\xa0\xb9\x83\x1d\xb8\x4e\x4d\x82\xc8\x9f\x9a\x0c\x89\x25\x37\x8b\x0d\xbe\xc2\x6e\x8a\xb2\x6d\x5c\xbf\xa7\x24\xcb\x44\x48\x94\x56\xf7\x39\xc9\xc7\x33\x15\xcf\x32\x3e\x3b\x6c\x2f\x8e\x11\x5a\x18\x0b\x7f\x17\xb1\xeb\x52\x83\xec\x98\xb4\x51\x15\x74\x39\x70\x33\x76\xa8\x2c\xe1\x93\x95\x2d\x1c\x0f\xd2\xa3\xeb\x58\x8d\xd3\xc1\x0a\xab\x38\xfc\xd9\xb6\xcc\xd7\x07\x4a\xbe\x64\xee\x2e\x70\x64\xee\xee\xbb\xc9\x7e\x93\x02\x9c\xb7\x52\x37\x95\x90\x9a\x47\x96\x22\x55\xb5\x18\x96\xf9\x9e\x8f\xfa\x61\x01\xad\x6b\x82\x48\x09\x21\x31\x4d\x21\x66\xd1\x52\xc0\x9e\x39\xd4\xac\x45\x7a\xbd\x3a\xe3\xcb\x37\xde\x07\x8e\x95\x04\xe6\xc3\x33\x9b\x9b\x71\xe4\xbc\xd1\x7d\xbb\x47\x1b\x13\xc9\x63\x8a\x05\xbc\x99\xa7\x72\x7e\x38\xa6\xf6\xf5\x24\xa7\xde\x3b\x6f\x0b\x70\xd8\xe5\xb3\xb6\xbb\x5e\x85\x47\xf1\xdf\xff\x56\x86\x81\x12\xfa\xc7\x97\xcc\xfd\x15\x9b\x9c\x86\x82\x8e\x00\xa1\xb9\xc8\xea\x43\x68\xad\xf3\x76\xdb\x24\xd5\x06\xc9\x27\xed\xf5\x6c\xaf\xb0\x92\xda\xa1\xf5\x34\x11\x16\x31\x32\x9f\xbd\x7d\x16\x7d\x6f\xf5\x90\xd1\xa2\x80\xb9\x9c\x93\x4c\xc3\xe1\xa5\x6f\x71\x0e\x87\x7d\x43\xab\xbb\x87\x9c\x56\x77\x79\x98\xc9\xec\xcd\x30\x29\x03\x49\x08\x8b\x14\xff\x07\x00\x00\xff\xff\x4b\x7c\x2b\x7f\xbc\x08\x00\x00")
var _runtimePluginsLinterLinterLua = []byte("\x1f\x8b\x08\x00\x00\x09\x6e\x88\x00\xff\x8c\x55\x51\x6b\xe4\x36\x10\x7e\xdf\x5f\x31\x88\x1a\xe4\xc4\x76\xca\x3d\x2e\xec\xc3\x35\xb4\x07\xe5\xae\x57\xc8\xb5\xf7\xd0\xf6\x8a\xd6\x1a\x79\xd5\xc8\x92\x91\xe4\xdd\x2c\xa5\xff\xbd\x48\xf2\x7a\x6d\xc7\x7b\x5c\x20\x64\x22\xcd\x7c\xdf\xcc\x37\xe3\x91\x14\xf0\x0e\xfd\xc7\xce\x4b\xa3\x29\x51\x52\x7b\xb4\x24\x87\xdd\x0e\xb4\x54\xe0\x0f\xa8\x37\x00\x00\x6f\x39\x5f\xf8\x14\xe0\x6d\x8f\xf9\x06\x35\xdf\x6c\x3e\xb0\x67\x7c\x34\x6d\xcb\x34\x4f\x0e\xa4\x80\xc1\xb1\xb2\xbd\x7e\x7f\x09\xf9\x3e\xdf\x6c\x44\xaf\xeb\x80\x04\xe3\x05\xcd\x23\xc7\x63\x6f\x7f\x97\x78\xa2\xf9\xf6\x89\x1d\x91\x0a\xa6\x1c\xa6\x1b\x65\x6a\xa6\x40\x78\xd8\x5d\x9d\xaa\x1f\x7a\xb1\xfd\x49\x2a\xfc\x74\xee\x90\xce\xfc\xa4\xc2\xa5\x67\xf5\x2b\xf3\x87\x89\x0f\xc7\xa3\xee\x95\x82\x1d\x90\x07\x8e\xc7\x87\xf0\x0f\x89\xf7\x52\xc0\xc7\xa7\x50\x3f\x39\x49\xcd\xcd\xc9\x91\xab\x0a\xe1\x67\x12\xf9\xcb\x6f\xef\x53\x4c\xd0\x60\x88\x0d\x49\xee\x80\x34\x66\x11\x16\xc4\xa0\xa4\x31\xfb\x5e\x2a\x1e\xd4\x69\x0c\x44\x1b\x4a\x03\x04\xaa\xea\x02\x5c\x00\xc9\xc4\x36\x53\x5b\xc8\x5a\x92\xbf\x8a\xbf\x88\x9b\xac\x14\xf9\xba\xd2\x11\x24\xe3\xf7\x13\x20\x54\x0e\xaf\x39\xaa\x9e\xad\x26\xa9\x7a\x56\x1f\xb0\x7e\x8e\x3d\x1c\x6c\x28\x4b\x6d\xca\xda\x28\x63\x13\x67\x10\xf9\x9b\x58\xba\xb3\x3f\x18\xbd\x4a\xd4\x9d\x85\x62\xcf\xe8\x02\xd1\xc5\x5e\x41\xbf\x85\x5c\xaf\x4b\x5c\xd7\x51\x9f\xba\x86\x52\xb8\xb3\xf6\xec\xa5\x34\x5a\x9d\xa1\xfc\xcc\x94\x82\xf2\x33\xbe\x78\xcb\x6e\x14\x51\xdd\xae\x83\xaf\xb2\xf1\x36\x36\x93\xb7\x1c\x92\x3a\x3b\x23\x04\x94\xa6\x84\xf2\x04\xe5\x49\x42\x59\x2f\xa8\x32\x9a\xa9\x2c\xff\x1a\xd3\x3f\xec\xb8\xde\x98\x70\x11\x8b\x8b\xc6\x9a\x52\x68\xad\xb1\x5f\x05\x76\xb5\x95\x9d\x5f\x87\x77\x87\x61\xb8\x92\xb5\x24\x08\x6e\x08\x99\x2a\xaa\xfb\x62\x42\xa1\x79\xda\x01\xe3\x77\x6d\x74\xfc\x7e\x8f\x12\x4f\xf9\xe5\xb3\x58\xdb\x31\xb3\x14\x96\xcb\x20\x64\x3e\x5e\x5e\x37\xc3\xa3\x42\x66\xdf\x2a\xf5\xae\xf7\x1e\xed\x07\x74\x8e\x35\xe8\xe8\xad\x54\x62\x61\x89\xb0\x80\xba\xe5\x45\x52\x48\x18\xdb\x32\xbf\xdc\x3a\x11\x7b\x01\x9c\x62\xf3\x4d\x74\xfd\xd9\xec\x9f\x3c\xb3\x9e\x46\x24\x42\x86\xdf\x61\xcf\x19\xfd\xe3\x8b\x0c\xf2\x5d\xf8\x66\x54\x4b\x89\x82\x2f\x35\xbd\xef\x7a\x7f\x23\xe2\xba\xac\x82\xee\x0e\x76\xe0\x3a\x35\x09\x22\x7f\x6a\x32\x24\x96\xdc\x2c\x36\xf8\x02\xbb\x29\xca\xb6\x71\xfd\x9e\x92\x2c\x13\x21\x51\x5a\xdd\xe7\x24\x1f\xcf\x54\x3c\xcb\xf8\xec\xb0\xbd\x3a\x46\x68\x61\x2c\xfc\x5d\xc4\xce\x4b\x0d\xb2\x63\xd2\x46\x55\xd0\xe5\xc0\xcd\xd8\xa1\xb2\x84\x4f\x56\xb6\x70\x3a\x48\x8f\xae\x63\x35\x4e\x87\x2b\xac\xe3\xf0\x67\xdb\x32\x5f\x1f\x28\xf9\x92\xb9\xbb\xc0\x91\xb9\xbb\xef\x26\x3b\x4e\x0a\x70\xde\x4a\xdd\x54\x42\x6a\x1e\x59\x8a\x54\xd5\x62\x58\xe6\xbb\x3e\xea\x87\x05\xb4\xae\x09\x22\x25\x84\xc4\x34\x85\x98\x45\x4b\x01\x7b\xe6\x50\xb3\x16\xe9\xeb\xf5\x19\xdf\xbf\xf1\x3e\x70\xac\x24\x30\x1f\x9e\xd9\xdc\x8c\x23\xe7\x8d\xee\xdb\x3d\xda\x98\x48\x1e\x53\x2c\xe0\xcd\x3c\x95\xcb\xe3\x31\xb5\x5f\x4f\x72\xea\xbd\xf3\xb6\x00\x87\x5d\x3e\x6b\xbb\xeb\x55\x78\x1a\xff\xfd\x6f\x65\x18\x28\xa1\x7f\x7c\xc9\xdc\x5f\xb1\xc9\x69\x28\xe8\x08\x10\x9a\x8b\xac\x3e\x84\xd6\x3a\x6f\xb7\x4d\x52\x6d\x90\x7c\xd2\x5e\xcf\xf6\x0a\x2b\xa9\x1d\x5a\x4f\x13\x61\x11\x23\xf3\xd9\xfb\x67\xd1\xf7\x56\x0f\x19\x2d\x0a\x98\xcb\x39\xc9\x34\x1c\x5e\xfb\x16\xe7\x70\xd8\x39\xb4\xba\x7b\xc8\x69\x75\x97\x87\x99\xcc\xde\x0c\x93\x32\x90\x84\xb0\x48\xf1\x7f\x00\x00\x00\xff\xff\xd9\xdd\x8d\xe1\xc2\x08\x00\x00")
func runtimePluginsLinterLinterLuaBytes() ([]byte, error) {
return bindataRead(
@ -487,7 +487,7 @@ func runtimePluginsLinterLinterLua() (*asset, error) {
return nil, err
}
info := bindataFileInfo{name: "runtime/plugins/linter/linter.lua", size: 2236, mode: os.FileMode(420), modTime: time.Unix(1472154446, 0)}
info := bindataFileInfo{name: "runtime/plugins/linter/linter.lua", size: 2242, mode: os.FileMode(420), modTime: time.Unix(1472157264, 0)}
a := &asset{bytes: bytes, info: info}
return a, nil
}

View file

@ -321,7 +321,7 @@ func (v *View) HandleEvent(event tcell.Event) {
v.Cursor.Right()
for _, pl := range loadedPlugins {
_, err := Call(pl+".onRune", string(e.Rune()))
_, err := Call(pl+".onRune", string(e.Rune()), v)
if err != nil && !strings.HasPrefix(err.Error(), "function does not exist") {
TermMessage(err)
}

View file

@ -9,12 +9,11 @@ end
local autoclosePairs = {"\"\"", "''", "()", "{}", "[]"}
local autoNewlinePairs = {"()", "{}", "[]"}
function onRune(r)
function onRune(r, v)
if not GetOption("autoclose") then
return
end
local v = CurView()
for i = 1, #autoclosePairs do
if r == charAt(autoclosePairs[i], 2) then
local curLine = v.Buf:Line(v.Cursor.Y)
@ -43,12 +42,11 @@ function onRune(r)
end
end
function preInsertNewline()
function preInsertNewline(v)
if not GetOption("autoclose") then
return
end
local v = CurView()
local curLine = v.Buf:Line(v.Cursor.Y)
local curRune = charAt(curLine, v.Cursor.X)
local nextRune = charAt(curLine, v.Cursor.X+1)
@ -68,13 +66,11 @@ function preInsertNewline()
return true
end
function preBackspace()
function preBackspace(v)
if not GetOption("autoclose") then
return
end
local v = CurView()
for i = 1, #autoclosePairs do
local curLine = v.Buf:Line(v.Cursor.Y)
if charAt(curLine, v.Cursor.X+1) == charAt(autoclosePairs[i], 2) and charAt(curLine, v.Cursor.X) == charAt(autoclosePairs[i], 1) then

View file

@ -9,13 +9,12 @@ MakeCommand("goimports", "go.goimports", 0)
MakeCommand("gofmt", "go.gofmt", 0)
function onViewOpen(view)
-- messenger:Message("HI")
if view.Buf:FileType() == "go" then
SetLocalOption("tabstospaces", "off", view)
end
end
function onSave()
function onSave(view)
if CurView().Buf:FileType() == "go" then
if GetOption("goimports") then
goimports()

View file

@ -30,7 +30,7 @@ function runLinter()
end
end
function onSave()
function onSave(view)
if GetOption("linter") then
runLinter()
else