Skip to content

Commit 4b8a3ee

Browse files
[pre-commit.ci lite] apply automatic fixes
1 parent 27f4829 commit 4b8a3ee

File tree

1 file changed

+7
-10
lines changed

1 file changed

+7
-10
lines changed

plugin/avante.lua

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -123,16 +123,13 @@ cmd(
123123
)
124124
cmd("Refresh", function() require("avante.api").refresh() end, { desc = "avante: refresh windows" })
125125
cmd("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
})

0 commit comments

Comments
 (0)