You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
---@fieldserver? opencode.server.Opts OpenCode server connection options.
---@fieldcontexts? table<string, fun(context: opencode.context.Context): string?> Context placeholders and their builders.
---@fieldask? opencode.ask.Opts Options for `ask()`. Supports [snacks.input](https://github.com/folke/snacks.nvim/blob/main/docs/input.md).
---@fieldselect? opencode.select.Opts Options and items for `select()`. Supports [snacks.picker](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md).
---@fieldevents? opencode.events.Opts Options for handling OpenCode events.
---Your opencode.nvim configuration.
---Passed via global variable for [simpler UX and faster startup](https://mrcjkb.dev/posts/2023-08-22-setup.html).
---
---snacks.nvim note: Neovim does not yet support metatables or mixed integer and string keys in `vim.g` variables, affecting some options.
---In that case you may modify `require("opencode.config").opts` directly.
---See [opencode.nvim #36](https://github.com/nickjvandyke/opencode.nvim/issues/36) and [neovim #12544](https://github.com/neovim/neovim/issues/12544#issuecomment-1116794687).
---@typeopencode.Opts?
vim.g.opencode_opts=vim.g.opencode_opts
localM= {}
---@typeopencode.Opts
localdefaults= {
server= {
url=nil,
connect=true,
username=vim.env.OPENCODE_SERVER_USERNAMEor"opencode", -- Same env vars and defaults as OpenCode