Add much better autocompletion for commands

This commit is contained in:
Zachary Yedidia
2016-08-17 13:49:37 -04:00
parent 932370f597
commit 8a58506c72
6 changed files with 160 additions and 61 deletions

View File

@@ -5,8 +5,8 @@ if GetOption("gofmt") == nil then
AddOption("gofmt", true)
end
MakeCommand("goimports", "go.save")
MakeCommand("gofmt", "go.save")
MakeCommand("goimports", "go.save", 0)
MakeCommand("gofmt", "go.save", 0)
function onSave()
if CurView().Buf.FileType == "Go" then