Skip to content

Instantly share code, notes, and snippets.

@delphinus
Created February 3, 2021 01:04
Show Gist options
  • Save delphinus/50b959cc5301d843661ac6718cdc419d to your computer and use it in GitHub Desktop.
Save delphinus/50b959cc5301d843661ac6718cdc419d to your computer and use it in GitHub Desktop.
telescope-frecency.nvim bug report
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 55add1c \
&& 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/start/packer.nvim
RUN mkdir -p ~/.config/nvim
RUN echo '\
require"packer".startup(function()\n\
use"wbthomason/packer.nvim"\n\
use{\n\
"nvim-telescope/telescope.nvim",\n\
requires = {\n\
{"nvim-lua/popup.nvim"},\n\
{"nvim-lua/plenary.nvim"},\n\
--{"nvim-telescope/telescope-frecency.nvim"},\n\
{\n\
"delphinus/telescope-frecency.nvim",\n\
branch = "hotfix/disable-mappings-override",\n\
},\n\
{"tami5/sql.nvim"},\n\
},\n\
config = function()\n\
local telescope = require"telescope"\n\
local actions = require"telescope.actions"\n\
telescope.setup{\n\
defaults = {\n\
mappings = {\n\
i = {\n\
["<C-j>"] = actions.move_selection_next,\n\
["<C-k>"] = actions.move_selection_previous,\n\
["<C-n>"] = actions.goto_file_selection_split,\n\
},\n\
},\n\
},\n\
extensions = {\n\
frecency = {\n\
workspaces = {\n\
vimrc = vim.env.HOME.."/.config/nvim",\n\
},\n\
},\n\
},\n\
}\n\
telescope.load_extension"frecency"\n\
end,\n\
}\n\
end)\n\
vim.api.nvim_exec([[\n\
nnoremap <C-p> <Cmd>PackerInstall<CR>\n\
PackerCompile\n\
]], false)\n\
' >> ~/.config/nvim/init.lua
WORKDIR /root
ENTRYPOINT /bin/bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment