7c2baa6086
The ftoptions plugin will override values in settings.json based on language requirements (e.g. using tabs in makefiles).
10 lines
239 B
Lua
10 lines
239 B
Lua
function onViewOpen(view)
|
|
local ft = view.Buf.Settings["filetype"]
|
|
|
|
if ft == "makefile" or ft == "go" then
|
|
SetOption("tabstospaces", "off")
|
|
elseif ft == "python" then
|
|
SetOption("tabstospaces", "on")
|
|
end
|
|
end
|