Velocity/core/mode.py

18 lines
425 B
Python
Raw Normal View History

2022-03-15 15:37:38 +00:00
from modes import normal, insert, command
2022-03-17 21:47:19 +00:00
def activate(screen, data):
2022-03-15 15:37:38 +00:00
if data["mode"] == "normal":
data["mode_color"] = 6
2022-03-17 21:47:19 +00:00
data = normal.activate(screen, data)
2022-03-15 15:37:38 +00:00
elif data["mode"] == "insert":
data["mode_color"] = 12
2022-03-17 21:47:19 +00:00
data = insert.activate(screen, data)
2022-03-15 15:37:38 +00:00
elif data["mode"] == "command":
data["mode_color"] = 6
2022-03-17 21:47:19 +00:00
data = command.activate(screen, data)
2022-03-15 15:37:38 +00:00
return data