Go plugin should disable tabstospaces if the file is go

This commit is contained in:
Zachary Yedidia
2016-08-19 18:47:37 -07:00
parent d409c3a031
commit f9cb99b35f
4 changed files with 28 additions and 13 deletions

View File

@@ -5,6 +5,10 @@ if GetOption("gofmt") == nil then
AddOption("gofmt", true)
end
if CurView().Buf.FileType == "Go" then
SetOption("tabstospaces", "off")
end
MakeCommand("goimports", "go.goimports", 0)
MakeCommand("gofmt", "go.gofmt", 0)