Closed phongvcao closed 4 years ago
Thanks for the report.
I created a minimal configuration with neovim and bat installed with Docker, but I couldn't reproduce it. Is it possible to create a reproducible configuration using this Dockerfile?
Create a Dockerfile and run the following command.
$ docker build ./ -t neovim
$ docker run --rm -it neovim
FROM ubuntu:bionic
# Neovim
RUN apt-get update && apt install -y ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config unzip git
WORKDIR /usr/local/src
RUN git clone https://github.com/neovim/neovim.git
WORKDIR /usr/local/src/neovim
RUN make && make install
# Node
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash -
RUN apt install -y nodejs
# bat
RUN curl -sL https://github.com/sharkdp/bat/releases/download/v0.15.4/bat_0.15.4_amd64.deb -o bat_0.15.4_amd64.deb
RUN dpkg -i bat_0.15.4_amd64.deb
# vim plugin
RUN sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
RUN mkdir -p /root/.config/nvim
RUN echo "call plug#begin('~/.vim/plugged') \n\
Plug 'junegunn/fzf', {'dir': '~/.fzf', 'do': './install --all'} \n\
Plug 'neoclide/coc.nvim', {'branch': 'release'} \n\
call plug#end() \n\
\n\
let g:coc_global_extensions = ['coc-fzf-preview'] \n" >> /root/.config/nvim/init.vim
RUN nvim +PlugInstall +qa!
ENTRYPOINT ["nvim"]
Also, using Remote Plugin and coc extensions at the same time might cause a bug. Try to use only one of them.
Hi @yuki-ycino can you try this plugin on Vim? The error I quoted above was from Vim 8.2 not neovim.
Sorry, I wasn't able to verify the version. It works on vim8 on the Mac.
:version
VIM - Vi IMproved 8.2 (2019 Dec 12, compiled Jul 27 2020 01:26:07)
macOS version
Included patches: 1-1300
Ok I think I figured out the problem. It was a conflict in my .vimrc
with a plugin called symlink.vim
:
Plug 'aymericbeaumet/symlink.vim'
Thanks @yuki-ycino for your help and the great plugin.
Running
:CocCommand fzf-preview.BufferLines
gave me the following error:I don't set any settings for
fzf-preview.vim
(meaning everything is default). The error happens regardless of whetherbat
is installed or not.Here is my vim version:
Please let me know if you need more info. Thanks for the great plugin.