diff options
Diffstat (limited to 'runtime/lua/core/state.lua')
| -rw-r--r-- | runtime/lua/core/state.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/runtime/lua/core/state.lua b/runtime/lua/core/state.lua new file mode 100644 index 0000000..783c137 --- /dev/null +++ b/runtime/lua/core/state.lua @@ -0,0 +1,35 @@ +local M = {} + +M.commands = {} +M.keymap = {} +M.current_theme = "base16-default-light" + +M.mode_line_buffer = nil +M.message_buffer = nil +M.command_buffer = nil +M.picker_buffer = nil + +M.message_text = "ready" +M.command_mode = false +M.command_kind = "lua" +M.command_text = "" +M.mode = "normal" +M.suppress_next_text = false +M.leader_key = "space" +M.leader_pending = false +M.leader_map = {} +M.picker = { + active = false, + title = "", + query = "", + items = {}, + filtered = {}, + selected = 1, + on_select = nil, + on_cancel = nil, +} + +M.hooks = {} +M.next_anon_command_id = 1 + +return M |
