Merge pull request #882 from onodera-punpun/ft

Add fish to ftoptions
This commit is contained in:
Zachary Yedidia
2017-10-17 00:04:04 -04:00
committed by GitHub

View File

@@ -9,9 +9,15 @@ function onViewOpen(view)
local ft = view.Buf.Settings["filetype"]
if ft == "makefile" or ft == "go" then
if ft == "go" or
ft == "makefile" then
SetOption("tabstospaces", "off")
elseif ft == "python" or ft == "python2" or ft == "python3" or ft == "yaml" or ft =="nim" then
elseif ft == "fish" or
ft == "python" or
ft == "python2" or
ft == "python3" or
ft == "yaml" or
ft == "nim" then
SetOption("tabstospaces", "on")
end
end