mirror of
https://github.com/Hopiu/micro.git
synced 2026-05-17 19:21:07 +00:00
Added automatic tabs to spaces for yaml and updated readme
This commit is contained in:
parent
aa667f6ba9
commit
8a4f2193d8
2 changed files with 2 additions and 2 deletions
|
|
@ -195,7 +195,7 @@ Default plugin options:
|
||||||
default value: `on`
|
default value: `on`
|
||||||
|
|
||||||
* `ftoptions`: by default, micro will set some options based on the filetype. At the moment, micro will
|
* `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.
|
disable this behavior turn this option off.
|
||||||
|
|
||||||
default value: `on`
|
default value: `on`
|
||||||
|
|
|
||||||
|
|
@ -11,7 +11,7 @@ function onViewOpen(view)
|
||||||
|
|
||||||
if ft == "makefile" or ft == "go" then
|
if ft == "makefile" or ft == "go" then
|
||||||
SetOption("tabstospaces", "off")
|
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")
|
SetOption("tabstospaces", "on")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue