Skip to content

Translate text in neovim using free Google translate API

Notifications You must be signed in to change notification settings

kraftwerk28/gtranslate.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:

About

Translate text in neovim using free Google translate API

Topics

Resources

Stars

Watchers

Forks