Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 853 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 853 Bytes

gtranslate.nvim

Plugin for neovim to translate text through https://translate.googleapis.com

Installation:

Via packer.nvim:

use {"kraftwerk28/gtranslate.nvim", requires = {"nvim-lua/plenary.nvim"}}

Via vim-plug:

Plug 'kraftwerk28/gtranslate.nvim'
Plug 'nvim-lua/plenary.nvim'

Configuration (optional)

require("gtranslate.nvim").setup {
  default_to_language = "English"
}

Usage:

  • Select the text to translate (visual mode);
  • Run one of the following commands:
:Translate <from-language> <to-language>
:Translate <to-language> " In that case, the <from-language> is automatic
:Translate " Translate to <default_to_language>; <from-language> is automatic

Showcase: