Skip to content

Instantly share code, notes, and snippets.

@delphinus
Last active January 21, 2021 00:44
Show Gist options
  • Save delphinus/fc8b9fd9bbac15a59eeeafaf33d0abf1 to your computer and use it in GitHub Desktop.
Save delphinus/fc8b9fd9bbac15a59eeeafaf33d0abf1 to your computer and use it in GitHub Desktop.
Testing telescope.nvim on the latest Neovim
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 \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 --single-branch \
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 echo 'nvim --version' >> ~/.bashrc
RUN git clone https://github.com/wbthomason/packer.nvim \
~/.local/share/nvim/site/pack/packer/opt/packer.nvim
RUN mkdir -p ~/.config/nvim
RUN echo '\
vim.cmd [[packadd packer.nvim]]\n\
require"packer".startup(function()\n\
use"wbthomason/packer.nvim"\n\
use {\n\
"nvim-telescope/telescope.nvim",\n\
requires = {{"nvim-lua/popup.nvim"}, {"nvim-lua/plenary.nvim"}}\n\
}\n\
end)\n\
' >> ~/.config/nvim/init.lua
WORKDIR /root
ENTRYPOINT /bin/bash
@delphinus
Copy link
Author

You need :PackerCompile & :PackerInstall before using Telescope.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment