packer.nvim
use {
'torikatsupg/deepl.nvim',
setup = function()
vim.env.deepl_nvim_apikey = 'your apikey of freeplan'
vim.keymap.set('v', '<C-t>', function()
vim.env.deepl_nvim_apikey = 'your api key'
require 'deepl'.translate()
end, { noremap = true, silent = true })
end,
}
- select words
- call require'deepl'.translate(), then translated text will show.