Last active
August 17, 2020 12:53
-
-
Save delphinus/cdc8cc222e8decfdda08f1a863c7f262 to your computer and use it in GitHub Desktop.
Neovim testing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM python:3.8.3 | |
RUN apt-get update && apt-get install -y \ | |
ninja-build gettext libtool libtool-bin autoconf automake cmake g++ \ | |
pkg-config unzip \ | |
git \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN pip3 install pynvim | |
RUN git clone --depth 1 --single-branch --branch v0.4.2 https://github.com/neovim/neovim ~/neovim \ | |
&& cd ~/neovim \ | |
&& make CMAKE_BUILD_TYPE=Release \ | |
&& make install | |
RUN curl -LO https://github.com/mattn/memo/releases/download/v0.0.13/memo_v0.0.13_linux_amd64.tar.gz \ | |
&& tar xf memo_v0.0.13_linux_amd64.tar.gz \ | |
&& cp memo_v0.0.13_linux_amd64/memo /usr/local/bin \ | |
&& rm -fr memo_v0.0.13_linux_amd64* | |
RUN echo 'python3 -V' >> ~/.bashrc | |
RUN echo '( cd ~/neovim && echo "neovim: $(git rev-parse --short HEAD)" )' >> ~/.bashrc | |
RUN echo 'nvim --version' >> ~/.bashrc | |
RUN git clone https://github.com/Shougo/dein.vim ~/test/dein.vim | |
RUN mkdir -p ~/.config/nvim | |
RUN echo '\ | |
set runtimepath^=~/test/dein.vim\n\ | |
let s:dein_dir = expand("~/.cache/dein")\n\ | |
let s:toml = expand("~/.config/nvim/dein.toml")\n\ | |
if dein#load_state(s:dein_dir)\n\ | |
call dein#begin(s:dein_dir, [s:toml])\n\ | |
call dein#load_toml(s:toml)\n\ | |
call dein#end()\n\ | |
call dein#save_state()\n\ | |
endif\n\ | |
if dein#check_install()\n\ | |
call dein#install()\n\ | |
endif\n\ | |
filetype plugin indent on\n\ | |
\n\ | |
autocmd FileType denite call s:denite_my_settings()\n\ | |
function! s:denite_my_settings() abort\n\ | |
nnoremap <silent><buffer><expr> <C-c> denite#do_map("quit")\n\ | |
nnoremap <silent><buffer><expr> <CR> denite#do_map("do_action")\n\ | |
nnoremap <silent><buffer><expr> i denite#do_map("open_filter_buffer")\n\ | |
endfunction\n\ | |
\n\ | |
autocmd FileType denite-filter call s:denite_filter_my_settings()\n\ | |
function! s:denite_filter_my_settings() abort\n\ | |
imap <silent><buffer> <C-c> <Plug>(denite_filter_quit)\n\ | |
endfunction\n\ | |
' >> ~/.config/nvim/init.vim | |
RUN echo '\ | |
[[plugins]]\n\ | |
repo = "Shougo/denite.nvim"\n\ | |
[[plugins]]\n\ | |
repo = "delphinus/vim-denite-memo"\n\ | |
[[plugins]]\n\ | |
repo = "Jagua/vim-denite-ghq"\n\ | |
[[plugins]]\n\ | |
repo = "Shougo/neoyank.vim"\n\ | |
[[plugins]]\n\ | |
repo = "Shougo/neomru.vim"\n\ | |
' >> ~/.config/nvim/dein.toml | |
RUN nvim +UpdateRemotePlugins +q | |
WORKDIR /root | |
ENTRYPOINT /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment