Skip to content

Instantly share code, notes, and snippets.

@delphinus
Created September 3, 2021 05:06
Show Gist options
  • Save delphinus/eb3a4d324310bc69bce083cb60c143c0 to your computer and use it in GitHub Desktop.
Save delphinus/eb3a4d324310bc69bce083cb60c143c0 to your computer and use it in GitHub Desktop.
ddc-testing
# syntax = docker/dockerfile:1.3-labs
FROM ubuntu:21.04
RUN yes | unminimize
RUN apt-get update && apt-get install -y tzdata
# https://sleepless-se.net/2018/07/31/docker-build-tzdata-ubuntu/
ENV TZ=Asia/Tokyo
RUN apt-get install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ \
pkg-config unzip git man-db libsqlite3-dev \
wamerican \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --single-branch --depth 1 -b v0.5.0 \
https://github.com/neovim/neovim ~/neovim \
&& cd ~/neovim \
&& 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
# Disable caching below this line
# https://stackoverflow.com/questions/35134713/disable-cache-for-specific-run-commands
ADD "https://www.random.org/cgi-bin/randbyte?nbytes=10&format=h" skipcache
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/octaltree/cmp-look \
~/.local/share/nvim/site/pack/packer/start/cmp-look
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()
FILE
WORKDIR /root
ENTRYPOINT /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment