mirror of
https://github.com/zyedidia/micro.git
synced 2026-03-28 22:08:12 +09:00
Make all filetype names lowercase
This may be a breaking change if you are using a plugin that checks the filetype. All the default plugins are now updated, just make the filetype you were checking for previously all lowercase.
This commit is contained in:
@@ -5,7 +5,7 @@ if GetOption("gofmt") == nil then
|
||||
AddOption("gofmt", true)
|
||||
end
|
||||
|
||||
if CurView().Buf.FileType == "Go" then
|
||||
if CurView().Buf.FileType == "go" then
|
||||
SetOption("tabstospaces", "off")
|
||||
end
|
||||
|
||||
@@ -13,7 +13,7 @@ MakeCommand("goimports", "go.goimports", 0)
|
||||
MakeCommand("gofmt", "go.gofmt", 0)
|
||||
|
||||
function onSave()
|
||||
if CurView().Buf.FileType == "Go" then
|
||||
if CurView().Buf.FileType == "go" then
|
||||
if GetOption("goimports") then
|
||||
goimports()
|
||||
elseif GetOption("gofmt") then
|
||||
|
||||
Reference in New Issue
Block a user