-
-
Notifications
You must be signed in to change notification settings - Fork 101
Description
Did you check docs and existing issues?
- I have read the plugin docs
- I have read the opencode docs
- I have searched the existing plugin issues
- I have searched the existing opencode issues
- I am using the latest version of the plugin
:checkhealth opencode output
============================================================================== opencode: ✅ opencode.nvim ~ - OS: Linux 6.6.87.2-microsoft-standard-WSL2 (x86_64) - nvim version: 0.12.0-dev+gf847aa6208. - opencode.nvim git commit hash: 1088ee70dd997d785a1757d351c07407f0abfc9f. - vim.g.opencode_opts: {} opencode.nvim [binaries] ~ - ✅ OK opencode available with version 1.2.26. - ✅ OK curl available. - ✅ OK pgrep available. - ✅ OK lsof available. opencode.nvim [snacks] ~ - ✅ OK snacks.input is enabled: ask() will be enhanced. - ✅ OK snacks.picker is enabled: select() will be enhanced.
Describe the bug
When using @this and @buffer commands, one would expect that the exact content in the buffer is being read. However if it is a new change that has yet to be saved, opencode wouldn't be able to see the content and be confused.
Steps To Reproduce
- create a new file and write something to it (do not save)
- prompt opencode with a @this
Expected Behavior
OpenCode sees what's in the buffer and answer accordingly