-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathinit.lua
More file actions
22 lines (19 loc) · 719 Bytes
/
init.lua
File metadata and controls
22 lines (19 loc) · 719 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
local M = {}
function M.setup(opts)
-- Have to setup config first, especially before state as
-- it initializes at least one value (current_mode) from config.
-- If state is require'd first then it will not get what may
-- be set by the user
local config = require('opencode.config')
config.setup(opts)
require('opencode.ui.highlight').setup()
require('opencode.core').setup()
require('opencode.commands').setup()
require('opencode.ui.completion').setup()
require('opencode.keymap').setup(config.keymap)
require('opencode.event_manager').setup()
require('opencode.context').setup()
require('opencode.ui.context_bar').setup()
require('opencode.ui.reference_picker').setup()
end
return M