Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/n04ln/transfact.nvim
:book: Translation (en :soon: ja) for NeoVim
https://github.com/n04ln/transfact.nvim
Last synced: about 1 month ago
JSON representation
:book: Translation (en :soon: ja) for NeoVim
- Host: GitHub
- URL: https://github.com/n04ln/transfact.nvim
- Owner: n04ln
- Created: 2019-03-16T14:43:13.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-11-14T09:18:25.000Z (about 5 years ago)
- Last Synced: 2023-10-25T14:34:45.989Z (about 1 year ago)
- Language: Vim script
- Homepage:
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# transfact.nvim
For translation(En-Ja) in NeoVim## Demo
[![asciicast](https://asciinema.org/a/6I68Wftec0YslkvWMl9lkh4mk.svg)](https://asciinema.org/a/6I68Wftec0YslkvWMl9lkh4mk)## Requred
- NeoVim >= v0.4.2
- GoogleAppsScript environment (under‐mentioned)
- go >= 1.11 (go modules supported)## Installation
### 1. Setup GoogleAppsScript environment for your translation.
This plugin will be used it.
It is easy, please copy&paste the code from `google_app_script/code.gs` to your project.
And it should be run.
### 2. Set Environment Variable
For using GAS project of `1. Setup GoogleAppsScript environment for your translation.`.
Please set `TRANSFACT_APPURL` such as below.
``` sh
export TRANSFACT_APPURL=https://script.google.com/...
```
### 3. Install go binary.
Some of this plugin is written in Go.
Therefore, please execute `go get -u github.com/NoahOrberg/transfact.nvim` on your terminal for installation of go binary.### 4. Install transfact.nvim to your NeoVim
Finally, Install this plugin to your NeoVim.
E.g, if you use `vim-plug`, please write below code to your `init.vim`
``` vim
Plug 'NoahOrberg/transfact.nvim'
```
Finally, please execute `:PlugUpdate` on your NeoVim.
### 5. :tada: setup is completed!!!
Let's Enjoy!## Usage
1. please select target using visual mode.
2. stroke `e` to show floating window with the texts that is translate from English to Japanese.