Created
August 27, 2021 09:35
-
-
Save delphinus/5ed266dc80d7075ded0911ab3678989a to your computer and use it in GitHub Desktop.
ddc.vim testing
This file contains hidden or 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
# syntax = docker/dockerfile:1.3-labs | |
FROM ubuntu:21.04 | |
RUN yes | unminimize | |
RUN apt-get update && apt-get install -y \ | |
ninja-build gettext libtool libtool-bin autoconf automake cmake g++ \ | |
pkg-config unzip git man-db libsqlite3-dev \ | |
&& apt-get clean \ | |
&& rm -rf /var/lib/apt/lists/* | |
RUN git clone --single-branch \ | |
https://github.com/neovim/neovim ~/neovim \ | |
&& cd ~/neovim \ | |
&& git reset --hard 274a350 \ | |
&& make CMAKE_BUILD_TYPE=Release \ | |
&& make CMAKE_INSTALL_PREFIX=$HOME/local/nvim install | |
RUN echo 'export PATH=$HOME/local/nvim/bin:$PATH' >> ~/.bashrc | |
RUN curl -fsSL https://deno.land/x/install/install.sh | sh | |
RUN echo 'export PATH=$HOME/.deno/bin:$PATH' >> ~/.bashrc | |
RUN echo 'nvim --version' >> ~/.bashrc | |
RUN echo 'deno --version' >> ~/.bashrc | |
RUN git clone https://github.com/Shougo/ddc.vim \ | |
~/.local/share/nvim/site/pack/packer/start/ddc.vim | |
RUN git clone https://github.com/Shougo/ddc-matcher_head \ | |
~/.local/share/nvim/site/pack/packer/start/ddc-matcher_head | |
RUN git clone https://github.com/Shougo/ddc-around \ | |
~/.local/share/nvim/site/pack/packer/start/ddc-around | |
RUN git clone https://github.com/vim-denops/denops.vim \ | |
~/.local/share/nvim/site/pack/packer/start/denops.vim | |
RUN mkdir -p ~/.config/nvim | |
COPY <<-"FILE" /root/.config/nvim/init.vim | |
call ddc#custom#patch_global({ | |
\ 'keywordPattern': '[a-zA-Z_]\w*', | |
\ 'smartCase': v:true, | |
\ 'sources': ['around'], | |
\ 'sourceOptions': { | |
\ '_': {'matchers': ['matcher_head']}, | |
\ 'around': {'mark': 'A'}, | |
\ }, | |
\ }) | |
call ddc#enable() | |
let g:denops#debug = 1 | |
FILE | |
WORKDIR /root | |
ENTRYPOINT /bin/bash |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment