mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-21 00:07:16 +09:00
Go plugin should disable tabstospaces if the file is go
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user