diff --git a/GentlemanNvim/nvim/lua/plugins/opencode.lua b/GentlemanNvim/nvim/lua/plugins/opencode.lua index 864d0904..144f2966 100644 --- a/GentlemanNvim/nvim/lua/plugins/opencode.lua +++ b/GentlemanNvim/nvim/lua/plugins/opencode.lua @@ -103,11 +103,27 @@ return { }, }, config = function() + local provider = vim.env.TMUX and "tmux" or "snacks" vim.g.opencode_opts = { provider = { + enabled = provider, + tmux = { + win = { + enter = true, + position = "left", + }, + focus = true, + allow_passthrough = false, + }, snacks = { + auto_close = true, + focus = true, win = { + enter = true, position = "left", + bo = { + filetype = "opencode_terminal", + }, }, }, },