1445303411
Also add the possibility of configuring it.
28 lines
568 B
Markdown
28 lines
568 B
Markdown
# opencode.nvim
|
|
|
|
Prototype Neovim plugin that opens `opencode` in a terminal split on the right.
|
|
|
|
## Usage
|
|
|
|
Run:
|
|
|
|
```vim
|
|
:OpenCodeToggle
|
|
```
|
|
|
|
The command opens `opencode` in a right-side terminal window sized to 40% of the
|
|
screen width. Running the command again closes only the window; the terminal
|
|
buffer and `opencode` session stay alive. Run `:OpenCodeToggle` again to show the
|
|
same session.
|
|
|
|
## Configuration
|
|
|
|
```lua
|
|
require("opencode").setup({
|
|
width = 0.4,
|
|
})
|
|
```
|
|
|
|
`width` is the fraction of the screen width used by the terminal window. The
|
|
default is `0.4`.
|