aerojump.nvim icon indicating copy to clipboard operation
aerojump.nvim copied to clipboard

Should not use folding in jumping

Open delphinus opened this issue 4 years ago • 1 comments

With using folding, Aerojump window keeps folding and it hides highlighted search strings. It should disable folding in searching.

asciicast

reproducible Dockerfile
FROM python:3.7.4

RUN apt-get update && apt-get install -y \
    ninja-build gettext libtool libtool-bin autoconf automake cmake g++ \
    pkg-config unzip \
    git \
 && apt-get clean \
 && rm -rf /var/lib/apt/lists/*

RUN git clone --depth 1 --single-branch --branch v0.4.2 https://github.com/neovim/neovim ~/neovim \
 && cd ~/neovim \
 && make CMAKE_BUILD_TYPE=Release \
 && make install

RUN mkdir -p ~/test \
 && git clone https://github.com/ripxorip/aerojump.nvim ~/test/aerojump.nvim

RUN pip3 install pynvim

RUN mkdir -p ~/.config/nvim
RUN echo '\
set runtimepath^=~/test/aerojump.nvim\n\
nmap # <Plug>(AerojumpDefault)\n\
set foldmethod=marker\n\
' >> ~/.config/nvim/init.vim

RUN echo '\
#!/usr/bin/env perl\n\
use 5.14.0;\n\
use warnings;\n\
\n\
sub main { #{{{\n\
    say 'Hello, World!';\n\
} #}}}\n\
\n\
main if $0 eq __FILE__;\n\
' >> ~/foo.pl

RUN echo 'python3 -V' >> ~/.bashrc
RUN echo '( cd ~/test/aerojump.nvim && echo "aerojump.nvim: $(git rev-parse --short HEAD)" )' >> ~/.bashrc
RUN echo '( cd ~/neovim             && echo "neovim:        $(git rev-parse --short HEAD)" )' >> ~/.bashrc
RUN echo 'nvim --version' >> ~/.bashrc
RUN nvim +UpdateRemotePlugins +q
WORKDIR /root
ENTRYPOINT /bin/bash

delphinus avatar Oct 08 '19 05:10 delphinus

This one is quite tricky, there are a couple of things that need to happen upon selection. Open the fold etc. I will do some investigation.

ripxorip avatar Oct 08 '19 14:10 ripxorip