]> git.lizzy.rs Git - micro.git/blob - runtime/plugins/ftoptions/ftoptions.lua
Add default ftoptions plugin to override settings
[micro.git] / runtime / plugins / ftoptions / ftoptions.lua
1 function onViewOpen(view)
2     local ft = view.Buf.Settings["filetype"]
3
4     if ft == "makefile" or ft == "go" then
5         SetOption("tabstospaces", "off")
6     elseif ft == "python" then
7         SetOption("tabstospaces", "on")
8     end
9 end