1 if GetOption("ftoptions") == nil then
2 AddOption("ftoptions", true)
5 function onViewOpen(view)
6 if not GetOption("ftoptions") then
10 local ft = view.Buf.Settings["filetype"]
12 if ft == "makefile" or ft == "go" then
13 SetOption("tabstospaces", "off")
14 elseif ft == "python" or ft == "python2" or ft == "python3" then
15 SetOption("tabstospaces", "on")