Closed atishdhu closed 1 year ago
You are probably using the fallback endpoint, so you need to use the following configuration keys. On a side note, this seems to be a reoccurring point of confusion, so this should be documented better.
I updated the config and it works now, thank you.
{
"potamides/pantran.nvim",
event = "VimEnter",
config = function()
require("pantran").setup({
default_engine = "google",
engines = {
google = {
fallback = {
default_source = "auto",
default_target = "fr"
}
},
},
})
end
},
My config
I want to set default engine to
google
and itsdefault_source
toenglish
anddefault_target
tofrench
. I have the following config inplugins.lua
:I also tried with:
Expectation
Source is
auto
and target isfrench
when i execute:Pantran
.Actual Result
Source is
auto
and target isenglish
when i execute:Pantran
.