Add fish to ftoptions
This commit is contained in:
parent
5af5140362
commit
5e66489836
1 changed files with 7 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue