A plugin that translates the selected string into any language.
[[plugins]]
repo = 'nabezokodaikon/translate.nvim'
- Select the text to translate.
- Running
Translate
command.
- The first argument specifies the language of the selected string. .
- The second argument specifies the language to translate.
- The translated text is popup window.
- Translated text is added to yank.
vim.keymap.set('v', '<Leader>t', '<cmd>Translate ja en<CR>', { noremap = true, silent = true })
vim.keymap.set('v', '<Leader>j', '<cmd>Translate en ja<CR>', { noremap = true, silent = true })