Created
March 4, 2021 01:53
-
-
Save delphinus/b5fbe569238707aa7483f993846faeec to your computer and use it in GitHub Desktop.
Telescope 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 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