From ade0e9dd39e6859a191d5b1a7061622fe5b57a01 Mon Sep 17 00:00:00 2001 From: Jipok Date: Sat, 14 Oct 2017 20:21:41 +0500 Subject: [PATCH] Use spaces for nim From manual: Nim's standard grammar describes an indentation sensitive language. This means that all the control structures are recognized by indentation. Indentation consists only of spaces; tabulators are not allowed. --- runtime/plugins/ftoptions/ftoptions.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/plugins/ftoptions/ftoptions.lua b/runtime/plugins/ftoptions/ftoptions.lua index 698fc60b..a0170b94 100644 --- a/runtime/plugins/ftoptions/ftoptions.lua +++ b/runtime/plugins/ftoptions/ftoptions.lua @@ -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" or ft == "yaml" then + elseif ft == "python" or ft == "python2" or ft == "python3" or ft == "yaml" or ft =="nim" then SetOption("tabstospaces", "on") end end