summaryrefslogtreecommitdiff
path: root/runtime/lua/core/state.lua
diff options
context:
space:
mode:
authorCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-05-11 15:07:55 -0500
committerCollin Williams <96917990+bluedragon1221@users.noreply.github.com>2026-05-11 15:07:55 -0500
commitcebb280fe546190e55e071b6adbf37cd47950f34 (patch)
tree6e7a7605f8832b1c1bd7e467884a8792a5e1fab4 /runtime/lua/core/state.lua
initial commit
Diffstat (limited to 'runtime/lua/core/state.lua')
-rw-r--r--runtime/lua/core/state.lua35
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