From 5e664898367af4a3e76032542aa49d237a4666f9 Mon Sep 17 00:00:00 2001 From: Camille Scholtz Date: Wed, 11 Oct 2017 17:02:37 +0200 Subject: [PATCH] Add fish to ftoptions --- runtime/plugins/ftoptions/ftoptions.lua | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/runtime/plugins/ftoptions/ftoptions.lua b/runtime/plugins/ftoptions/ftoptions.lua index 698fc60b..0ac2060e 100644 --- a/runtime/plugins/ftoptions/ftoptions.lua +++ b/runtime/plugins/ftoptions/ftoptions.lua @@ -9,9 +9,14 @@ 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" or ft == "yaml" then + elseif ft == "fish" or + ft == "python" or + ft == "python2" or + ft == "python3" or + ft == "yaml" or SetOption("tabstospaces", "on") end end