mirror of
https://github.com/zyedidia/micro.git
synced 2026-02-08 08:00:20 +09:00
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
|