File tree Expand file tree Collapse file tree 1 file changed +7
-10
lines changed
Expand file tree Collapse file tree 1 file changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -123,16 +123,13 @@ cmd(
123123)
124124cmd (" Refresh" , function () require (" avante.api" ).refresh () end , { desc = " avante: refresh windows" })
125125cmd (" Focus" , function () require (" avante.api" ).focus () end , { desc = " avante: switch focus windows" })
126- cmd (" SwitchProvider" ,
127- function (_opts )
128- local providers = vim .tbl_keys (Config .providers )
129- vim .tbl_extend (' force' , providers , Config .acp_providers )
130- vim .ui .select (providers , { prompt = " Provider> " }, function (choice , idx )
131- if idx ~= nil then
132- require (" avante.api" ).switch_provider (vim .trim (choice ))
133- end
134- end )
135- end , {
126+ cmd (" SwitchProvider" , function (_opts )
127+ local providers = vim .tbl_keys (Config .providers )
128+ vim .tbl_extend (" force" , providers , Config .acp_providers )
129+ vim .ui .select (providers , { prompt = " Provider> " }, function (choice , idx )
130+ if idx ~= nil then require (" avante.api" ).switch_provider (vim .trim (choice )) end
131+ end )
132+ end , {
136133 nargs = 0 ,
137134 desc = " avante: switch provider" ,
138135})
You can’t perform that action at this time.
0 commit comments