]> git.lizzy.rs Git - micro.git/blobdiff - runtime/plugins/ftoptions/ftoptions.lua
Merge pull request #613 from GeigerCounter/build_tools
[micro.git] / runtime / plugins / ftoptions / ftoptions.lua
index bc57dcdcc4c6108099ab44e487af1955bc08b5fc..1ffe99cb8179857a698c85529463697e006c8fc7 100644 (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" 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