File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -87,6 +87,7 @@ function M.select(cb)
8787 base_picker .pick ({
8888 title = ' Select model' ,
8989 items = models ,
90+ layout_opts = config .ui .picker ,
9091 format_fn = function (item , width )
9192 local icon = item .icon or ' '
9293 local item_width = width or vim .api .nvim_win_get_width (0 )
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ function M.pick(callback)
178178 callback = default_callback ,
179179 title = ' MCP Servers' ,
180180 width = 65 ,
181+ layout_opts = config .ui .picker ,
181182 })
182183end
183184
Original file line number Diff line number Diff line change 11local M = {}
22local base_picker = require (' opencode.ui.base_picker' )
33local state = require (' opencode.state' )
4+ local config = require (' opencode.config' )
45local config_file = require (' opencode.config_file' )
56local model_state = require (' opencode.model_state' )
67local util = require (' opencode.util' )
@@ -64,6 +65,7 @@ function M.select(callback)
6465 base_picker .pick ({
6566 title = ' Select variant' ,
6667 items = variants ,
68+ layout_opts = config .ui .picker ,
6769 format_fn = function (item , width )
6870 local item_width = width or vim .api .nvim_win_get_width (0 )
6971 local is_current = state .current_variant == item .name
You can’t perform that action at this time.
0 commit comments