Skip to content

Instantly share code, notes, and snippets.

@delphinus
Created March 4, 2021 01:53
Show Gist options
  • Save delphinus/b5fbe569238707aa7483f993846faeec to your computer and use it in GitHub Desktop.
Save delphinus/b5fbe569238707aa7483f993846faeec to your computer and use it in GitHub Desktop.
Telescope testing
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 c1fbc2d \
&& make CMAKE_BUILD_TYPE=Release \
&& make CMAKE_INSTALL_PREFIX=$HOME/local/nvim install
RUN echo 'export PATH=$HOME/local/nvim/bin:$PATH' >> ~/.bashrc
RUN echo 'nvim --version' >> ~/.bashrc
WORKDIR /root
RUN git clone https://github.com/nvim-lua/popup.nvim \
~/.local/share/nvim/site/pack/foo/start/popup.nvim
RUN git clone https://github.com/nvim-lua/plenary.nvim \
~/.local/share/nvim/site/pack/foo/start/plenary.nvim
RUN git clone https://github.com/nvim-telescope/telescope.nvim \
~/.local/share/nvim/site/pack/foo/start/telescope.nvim \
&& ln -s ~/.local/share/nvim/site/pack/foo/start/telescope.nvim \
&& cd telescope.nvim \
&& git checkout db76155
RUN mkdir -p ~/.config/nvim
RUN echo '\
local telescope = require"telescope"\n\
local builtin = require"telescope.builtin"\n\
telescope.setup{\n\
defaults = {\n\
mappings = {\n\
i = {\n\
["<C-a>"] = function() builtin.find_files{} end\n\
},\n\
},\n\
},\n\
}\n\
' >> ~/.config/nvim/init.lua
ENTRYPOINT /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment