From 501a127dc6c1b2762a6f7b08f5b778040bef9113 Mon Sep 17 00:00:00 2001 From: kpango Date: Sun, 3 Feb 2019 14:48:14 +0900 Subject: [PATCH] fix --- Dockerfile | 6 ++++++ init.vim | 3 +++ 2 files changed, 9 insertions(+) diff --git a/Dockerfile b/Dockerfile index 7911cced..9fe1c150 100755 --- a/Dockerfile +++ b/Dockerfile @@ -183,6 +183,12 @@ RUN mkdir "/etc/ld.so.conf.d" \ && gem install neovim -N \ && npm config set user root \ && npm install -g neovim resume-cli dockerfile-language-server-nodejs typescript typescript-language-server \ + && cd /tmp \ + && git clone https://github.com/soimort/translate-shell \ + && cd /tmp/translate-shell/ \ + && make TARGET=zsh -j -C /tmp/translate-shell \ + && make install -C /tmp/translate-shell \ + && rm -rf /tmp/translate-shell/ \ && curl -Lo ngt.tar.gz https://github.com/yahoojapan/NGT/archive/v1.5.1.tar.gz \ && tar zxf ngt.tar.gz -C /tmp \ && rm -rf ngt.tar.gz \ diff --git a/init.vim b/init.vim index 35562d00..c242cd50 100755 --- a/init.vim +++ b/init.vim @@ -66,6 +66,7 @@ call plug#begin(expand('$NVIM_HOME') . '/plugged') Plug 'prabirshrestha/asyncomplete.vim' Plug 'prabirshrestha/asyncomplete-lsp.vim' " Plug 'natebosch/vim-lsc' + Plug 'echuraev/translate-shell.vim' ", { 'do': 'wget -O /usr/local/bin/trans git.io/trans && chmod a+x /usr/local/bin/trans' } " ---- Vim Setting Plug 'Shougo/neco-vim', {'for': 'vim'} Plug 'Shougo/neco-syntax', {'for': 'vim'} @@ -405,6 +406,8 @@ endif " " deniteの起動位置をtopに変更 " "call denite#custom#option('default', 'direction', 'top') +let g:trans_bin = system('which trans') + " ------------------------------ " ---- Status line settings ---- " ------------------------------