]> git.lizzy.rs Git - micro.git/commitdiff
Added automatic tabs to spaces for yaml and updated readme
authorsotpapathe <sotpapathe@gmail.com>
Mon, 2 Oct 2017 09:36:28 +0000 (13:36 +0400)
committersotpapathe <sotpapathe@gmail.com>
Mon, 2 Oct 2017 09:36:28 +0000 (13:36 +0400)
runtime/help/options.md
runtime/plugins/ftoptions/ftoptions.lua

index d3e4ef93303d352427b465789f3f01f15225faf4..a65c24a420368f5dca8144b086ee0fa74ae8e59e 100644 (file)
@@ -195,7 +195,7 @@ Default plugin options:
        default value: `on`
 
 * `ftoptions`: by default, micro will set some options based on the filetype. At the moment, micro will
-   use tabs for makefiles and spaces for python files regardless of your settings. If you would like to
+   use tabs for makefiles and spaces for python and yaml files regardless of your settings. If you would like to
    disable this behavior turn this option off.
 
        default value: `on`
index bc57dcdcc4c6108099ab44e487af1955bc08b5fc..698fc60b65d4b3a25846438246249fa930c4a9fc 100644 (file)
@@ -11,7 +11,7 @@ function onViewOpen(view)
 
     if ft == "makefile" or ft == "go" then
         SetOption("tabstospaces", "off")
-    elseif ft == "python" or ft == "python2" or ft == "python3" then
+    elseif ft == "python" or ft == "python2" or ft == "python3" or ft == "yaml" then
         SetOption("tabstospaces", "on")
     end
 end