lucc / nvimpager

Use nvim as a pager to view manpages, diffs, etc with nvim's syntax highlighting
Other
382 stars 20 forks source link

How to use config from NeoVim? #4

Closed acgtyrant closed 6 years ago

acgtyrant commented 6 years ago

I would like to use the third-party colorscheme in NeoVim, however I copy .config/nvim/init.vim to .config/nvimpager/init.vim, I find that the nvimpager can not install and use third-party colorscheme.

lucc commented 6 years ago

If you want to use the same config as for neovim I suggest that you try to symlink ~/.config/nvimpager -> ~/.config/nvim. That will also make the plugin and colors folders and so on available in nvimpager.

If you have just one special colorscheme that you installed with Vundle/NeoBundle/VimPlug/etc you can also simply add the correct path to your runtimepath in nvimpager's config (no symlinking in this case). I myself have this in my nvimpager config

set rtp+=~/.local/share/nvim/plugins/neosolarized

If that doesn't help we need more info to solve this (config files, paths, etc).

acgtyrant commented 6 years ago

I link ~/.config/nvimpager to ~/.config/nvim, but it still compalins:

Error detected while processing /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim:
line   17:
E117: Unknown function: plug#begin
line   21:
E492: Not an editor command:   Plug 'scrooloose/nerdtree'
line   27:
E492: Not an editor command:   Plug 'scrooloose/nerdcommenter'
line   32:
E492: Not an editor command:   Plug 'ludovicchabant/vim-gutentags'
line   41:
E492: Not an editor command:   Plug 'majutsushi/tagbar'
line   48:
E492: Not an editor command:   Plug 'jiangmiao/auto-pairs'
line   50:
E492: Not an editor command:   Plug 'wakatime/vim-wakatime'
line   52:
E492: Not an editor command:   Plug 'mileszs/ack.vim'
line   61:
E492: Not an editor command:   Plug 'brooth/far.vim'
line   65:
E492: Not an editor command:   Plug 'google/vim-searchindex'
line   67:
E492: Not an editor command:   Plug 's3rvac/AutoFenc'
line   70:
E492: Not an editor command:   Plug 'vim-scripts/star-search'
line   74:
E492: Not an editor command:   Plug 'Shougo/deoplete.nvim'
line   75:
E492: Not an editor command:     Plug 'roxma/nvim-yarp'
line   76:
E492: Not an editor command:     Plug 'roxma/vim-hug-neovim-rpc'
line   79:
E492: Not an editor command:   Plug 'w0rp/ale'
line  109:
E492: Not an editor command:   Plug 'rust-lang/rust.vim'
line  112:
E492: Not an editor command:   Plug 'cespare/vim-toml'
line  120:
E492: Not an editor command:   Plug 'luochen1990/rainbow'
line  122:
E492: Not an editor command:   Plug 'morhetz/gruvbox'
line  126:
E492: Not an editor command:   Plug 'octol/vim-cpp-enhanced-highlight'
line  128:
E492: Not an editor command:   Plug 'Yggdroot/indentLine'
line  133:
E492: Not an editor command:   Plug 'bling/vim-airline'
line  148:
E492: Not an editor command:   Plug 'vim-airline/vim-airline-themes'
line  151:
E492: Not an editor command:   Plug 'lilydjwg/colorizer'
line  153:
E492: Not an editor command:   Plug 'Yggdroot/LeaderF'
line  171:
E492: Not an editor command:   Plug 'mhinz/vim-signify'
line  173:
E492: Not an editor command:   Plug 'kana/vim-textobj-us
lucc commented 6 years ago

It looks like I forgot two more entries. Nvimpager modifies the runtimepath and replaces the default entries of the user config dirs with a nvimpager variant. Additionally $NVIM_RPLUGIN_MANIFEST is set to a nvimpager value. You have to symlink all of these to your corresponding neovim values:

~/.config/nvimpager
~/.local/share/nvimpager/site
~/.local/share/nvimpager/rplugin.vim

If that doesn't work I need to know what you symlinked already and what these files contain.

acgtyrant commented 6 years ago

I do as you said, however it still comlains:

Error detected while processing /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim:
line  249:
E185: Cannot find color scheme 'gruvbox'
Press ENTER or type command to continue

The 249th line is colorscheme gruvbox, the gruvbox is a third-party colorscheme.

lucc commented 6 years ago

As I said above, please post the output of

ls -ld "${XDG_CONFIG_HOME:-$HOME/.config}/nvimpager" "${XDG_DATA_HOME:-~/.local/share}/nvimpager"

and

ls -l "${XDG_CONFIG_HOME:-$HOME/.config}/nvimpager/" "${XDG_DATA_HOME:-~/.local/share}/nvimpager/"
acgtyrant commented 6 years ago

2018-06-29-094133_1062x803_scrot

lucc commented 6 years ago

Oh sorry, the ~ should have been $HOME as well but you fixed that :) The text output would have been enough but the image works as well.

The strange thing is that your error messages talk about the file /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim but it looks like your config file is ~/.config/nvim/init.vim. Do you know why? Do you have set the environment variable VIMINIT? Try env|grep VIMINIT.

We can also check which init file is really used by nvimpager by running bash -x nvimpager -- -c scriptnames -c 'qa!' <<<foo. That will print some shell debug output which you can post here.

acgtyrant commented 6 years ago

Because I put my NeoVim config in dotfiles, and use stow to link them all to the home directory, refrence Using GNU Stow to manage your dotfiles.

env|grep VIMINIT no outputs.

bash -x nvimpager -- -c scriptnames -c 'qa!' <<<foo outputs:

+ name=nvimpager
+ version=0.4-16-g84f4882
+ mode=auto
+ rc=/home/acgtyrant/.config/nvimpager/init.vim
+ getopts achpu:v flag
+ shift 1
+ [[ ! -t 1 ]]
+ RUNTIME=/home/acgtyrant/.local/share/nvimpager/runtime
+ export RUNTIME
+ export PPID
+ [[ ! -r /home/acgtyrant/.config/nvimpager/init.vim ]]
+ files=()
+ [[ 4 -gt 0 ]]
+ [[ -f -c ]]
+ [[ auto = auto ]]
+ mode=pager
+ break
+ [[ pager != pager ]]
+ [[ ! -t 0 ]]
+ files=("$(mktemp)")
++ mktemp
+ trap 'rm -f "${files[0]}"' HUP INT QUIT TERM ABRT PIPE ALRM EXIT
+ cat
+ default_args=(-R -u "$rc" --cmd 'set rtp^=$RUNTIME' --cmd 'call pager#start()')
+ [[ pager = cat ]]
+ [[ pager = auto ]]
+ default_args+=(-c 'call pager#prepare_pager()')
+ nvim -R -u /home/acgtyrant/.config/nvimpager/init.vim --cmd 'set rtp^=$RUNTIME' --cmd 'call pager#start()' -c 'call pager#prepare_pager()' /tmp/tmp.ks2o1xtihR -c scriptnames -c 'qa!'
Error detected while processing /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim:
line  249:
E185: Cannot find color scheme 'gruvbox'
Press ENTER or type command to continue
+ rm -f /tmp/tmp.ks2o1xtihR
lucc commented 6 years ago

My bad, I forgot one -c. Maybe the rtp is also interesting. Can you please post the output of: bash -x nvimpager -c -- -c scriptnames -c 'echo &rtp' -c 'qa!' <<<foo

Ok, stow, ... So readlink -f ~/.config/nvimpager/init.vim should probably print /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim for you, no?

And can you also post the output of nvim -c scriptnames -c 'echo &rtp' -c 'qa!' so I can compare the nvim values to the nvimpager values.

acgtyrant commented 6 years ago
$ bash -x nvimpager -c -- -c scriptnames -c 'echo &rtp' -c 'qa!' <<<foo > asf                                                                                                  acgtyrant  PC
+ name=nvimpager
+ version=0.4-16-g84f4882
+ mode=auto
+ rc=/home/acgtyrant/.config/nvimpager/init.vim
+ getopts achpu:v flag
+ case $flag in
+ mode=cat
+ getopts achpu:v flag
+ shift 2
+ [[ ! -t 1 ]]
+ [[ cat = auto ]]
+ RUNTIME=/home/acgtyrant/.local/share/nvimpager/runtime
+ export RUNTIME
+ export PPID
+ [[ ! -r /home/acgtyrant/.config/nvimpager/init.vim ]]
+ files=()
+ [[ 6 -gt 0 ]]
+ [[ -f -c ]]
+ [[ cat = auto ]]
+ break
+ [[ cat != pager ]]
+ [[ 0 -eq 0 ]]
+ files=("$(mktemp)")
++ mktemp
+ trap 'rm -f "${files[0]}"' HUP INT QUIT TERM ABRT PIPE ALRM EXIT
+ cat
+ default_args=(-R -u "$rc" --cmd 'set rtp^=$RUNTIME' --cmd 'call pager#start()')
+ [[ cat = cat ]]
+ default_args+=(--headless -c 'call pager#prepare_cat()')
+ nvim -R -u /home/acgtyrant/.config/nvimpager/init.vim --cmd 'set rtp^=$RUNTIME' --cmd 'call pager#start()' --headless -c 'call pager#prepare_cat()' /tmp/tmp.B26IcSzgqs -c scriptnames -c 'echo &rtp' -c 'qa!'
Error detected while processing /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim:
line  249:
E185: Cannot find color scheme 'gruvbox'  1: ~/.local/share/nvimpager/runtime/autoload/pager.vim
  2: ~/dotfiles/NeoVim/.config/nvim/init.vim
  3: ~/.local/share/nvim/site/autoload/plug.vim
  4: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/filetype.vim
  5: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/ftplugin.vim
  6: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/indent.vim
  7: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/syntax/syntax.vim
  8: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/syntax/synload.vim
  9: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/syntax/syncolor.vim
 10: ~/.local/share/nvimpager/runtime/plugin/AnsiEscPlugin.vim
 11: ~/.local/share/nvimpager/runtime/plugin/cecutil.vim
  12: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/gzip.vim
 13: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/health.vim
 14: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/man.vim
 15: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/matchit.vim
 16: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/matchparen.vim
 17: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/netrwPlugin.vim
 18: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/rplugin.vim
 19: ~/.local/share/nvimpager/rplugin.vim
 20: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/autoload/remote/host.vim
 21: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/autoload/remote/define.vim
 22: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/rrhelper.vim
 23: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/shada.vim
 24: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/spellfile.vim
 25: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/tarPlugin.vim
  26: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/tohtml.vim
 27: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/tutor.vim
 28: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/plugin/zipPlugin.vim
 29: /tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime/scripts.vim
/home/acgtyrant/.local/share/nvimpager/runtime,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/nerdtree/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/nerdcommenter/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-gutentags/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/tagbar/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/auto-pairs/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-wakatime/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/ack.vim/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/far.vim/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-searchindex/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/AutoFenc/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/star-search/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/deoplete.nvim/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/nvim-yarp/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-hug-neovim-rpc/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/ale/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/rust.vim/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-toml/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/rainbow/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/gruvbox/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-cpp-enhanced-highlight/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/indentLine/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-airline/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-airline-themes/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/colorizer/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/LeaderF/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-signify/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-textobj-user/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-textobj-indent/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-textobj-syntax/,/home/acgtyrant/.local/share/nvimpager/runtime/plugged/vim-textobj-parameter/,/home/acgtyrant/.config/nvimpager,/etc/xdg/nvim,/home/acgtyrant/.local/share/nvimpager/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/tmp/.mount_nvim0mE2aL/usr/share/nvim/runtime,/usr/share/nvim/site/after,/usr/local/share/nvim/site/after,/home/acgtyrant/.local/share/nvimpager/site/after,/etc/xdg/nvim/after,/home/acgtyrant/.config/nvimpager/after+ rm -f /tmp/tmp.B26IcSzgqs

Yes, readlink -f ~/.config/nvimpager/init.vim prints /home/acgtyrant/dotfiles/NeoVim/.config/nvim/init.vim

nvim -c scriptnames -c 'echo &rtp' -c 'qa!' outputs like below:

_ _20180701132200 _ _20180701132217 _ _20180701132312

lucc commented 6 years ago

Tip for the future: the images do not help. I can not search them and I can not copy from them.

Strangely some gruvbox directory is in your runtimepath even with nvimpager. But it is different from the one in the nvim output, script number 11 which is the colorscheme.

You might have to debug your init script. Comment out large parts and add debug output like echo &rtp or so. After looking through your init script I did not see an obvious problem right away.

acgtyrant commented 6 years ago

Sorry, this the output of nvim -c scriptnames -c 'echo &rtp' -c 'qa!':

  1: ~/dotfiles/NeoVim/.config/nvim/init.vim
  2: ~/.local/share/nvim/site/autoload/plug.vim
  3: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/filetype.vim
  4: ~/dotfiles/NeoVim/.config/nvim/plugged/rust.vim/ftdetect/rust.vim
  5: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-toml/ftdetect/toml.vim
  6: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/ftplugin.vim
  7: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/indent.vim
  8: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/syntax/syntax.vim
  9: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/syntax/synload.vim
 10: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/syntax/syncolor.vim
 11: ~/dotfiles/NeoVim/.config/nvim/plugged/gruvbox/colors/gruvbox.vim
 12: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/plugin/NERD_tree.vim
 13: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/autoload/nerdtree.vim
 14: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/path.vim
 15: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/menu_controller.vim
 16: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/menu_item.vim
 17: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/key_map.vim
 18: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/bookmark.vim
 19: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/tree_file_node.vim
 20: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/tree_dir_node.vim
 21: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/opener.vim
 22: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/creator.vim
 23: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/flag_set.vim
 24: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/nerdtree.vim
 25: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/ui.vim
 26: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/event.vim
 27: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/lib/nerdtree/notifier.vim
 28: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/autoload/nerdtree/ui_glue.vim
 29: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/nerdtree_plugin/exec_menuitem.vim
 30: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdtree/nerdtree_plugin/fs_menu.vim
 31: ~/dotfiles/NeoVim/.config/nvim/plugged/nerdcommenter/plugin/NERD_commenter.vim
 32: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-gutentags/plugin/gutentags.vim
 33: ~/dotfiles/NeoVim/.config/nvim/plugged/tagbar/plugin/tagbar.vim
 34: ~/dotfiles/NeoVim/.config/nvim/plugged/auto-pairs/plugin/auto-pairs.vim
 35: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-wakatime/plugin/wakatime.vim
 36: ~/dotfiles/NeoVim/.config/nvim/plugged/ack.vim/plugin/ack.vim
 37: ~/dotfiles/NeoVim/.config/nvim/plugged/far.vim/plugin/far.vim
 38: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-searchindex/plugin/searchindex.vim
 39: ~/dotfiles/NeoVim/.config/nvim/plugged/AutoFenc/plugin/AutoFenc.vim
 40: ~/dotfiles/NeoVim/.config/nvim/plugged/star-search/plugin/starsearch.vim
 41: ~/dotfiles/NeoVim/.config/nvim/plugged/deoplete.nvim/plugin/deoplete.vim
 42: ~/dotfiles/NeoVim/.config/nvim/plugged/deoplete.nvim/autoload/deoplete.vim
 43: ~/dotfiles/NeoVim/.config/nvim/plugged/deoplete.nvim/autoload/deoplete/init.vim
 44: ~/dotfiles/NeoVim/.config/nvim/plugged/ale/plugin/ale.vim
 45: ~/dotfiles/NeoVim/.config/nvim/plugged/ale/autoload/ale/events.vim
 46: ~/dotfiles/NeoVim/.config/nvim/plugged/rust.vim/plugin/rust.vim
 47: ~/dotfiles/NeoVim/.config/nvim/plugged/rainbow/plugin/rainbow_main.vim
 48: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/plugin/airline.vim
 49: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline.vim
 50: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/init.vim
 51: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/parts.vim
 52: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline-themes/plugin/airline-themes.vim
 53: ~/dotfiles/NeoVim/.config/nvim/plugged/colorizer/plugin/colorizer.vim
 54: ~/dotfiles/NeoVim/.config/nvim/plugged/colorizer/autoload/colorizer.vim
 55: ~/dotfiles/NeoVim/.config/nvim/plugged/LeaderF/plugin/leaderf.vim
 56: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-signify/plugin/signify.vim
 57: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-textobj-indent/plugin/textobj/indent.vim
 58: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-textobj-user/autoload/textobj/user.vim
 59: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-textobj-syntax/plugin/textobj/syntax.vim
 60: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-textobj-parameter/plugin/textobj/parameter.vim
 61: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/gzip.vim
 62: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/health.vim
 63: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/man.vim
 64: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/matchit.vim
 65: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/matchparen.vim
 66: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/netrwPlugin.vim
 67: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/rplugin.vim
 68: ~/.local/share/nvim/rplugin.vim
 69: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/autoload/remote/host.vim
 70: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/autoload/remote/define.vim
 71: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/rrhelper.vim
 72: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/shada.vim
 73: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/spellfile.vim
 74: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/tarPlugin.vim
 75: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/tohtml.vim
 76: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/tutor.vim
 77: /tmp/.mount_nvim9S2Las/usr/share/nvim/runtime/plugin/zipPlugin.vim
 78: ~/dotfiles/NeoVim/.config/nvim/plugged/indentLine/after/plugin/indentLine.vim
 79: ~/dotfiles/NeoVim/.config/nvim/plugged/ale/autoload/ale.vim
 80: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions.vim
 81: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/quickfix.vim
 82: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/netrw.vim
 83: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/hunks.vim
 84: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/tagbar.vim
 85: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/util.vim
 86: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/ale.vim
 87: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/whitespace.vim
 88: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/po.vim
 89: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/wordcount.vim
 90: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/gutentags.vim
 91: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/keymap.vim
 92: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/section.vim
 93: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/highlighter.vim
 94: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline-themes/autoload/airline/themes/molokai.vim
 95: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/themes.vim
 96: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/builder.vim
 97: ~/dotfiles/NeoVim/.config/nvim/plugged/vim-airline/autoload/airline/extensions/default.vim
 98: ~/dotfiles/NeoVim/.config/nvim/plugged/ale/autoload/ale/pattern_options.vim
 99: ~/dotfiles/NeoVim/.config/nvim/plugged/LeaderF/autoload/lfMru.vim
/home/acgtyrant/.config/nvim,/home/acgtyrant/.config/nvim/plugged/nerdtree/,/home/acgtyrant/.config/nvim/plugged/nerdcommenter/,/home/acgtyrant/.config/nvim/plugged/vim-gutentags/,/home/acgty
rant/.config/nvim/plugged/tagbar/,/home/acgtyrant/.config/nvim/plugged/auto-pairs/,/home/acgtyrant/.config/nvim/plugged/vim-wakatime/,/home/acgtyrant/.config/nvim/plugged/ack.vim/,/home/acgty
rant/.config/nvim/plugged/far.vim/,/home/acgtyrant/.config/nvim/plugged/vim-searchindex/,/home/acgtyrant/.config/nvim/plugged/AutoFenc/,/home/acgtyrant/.config/nvim/plugged/star-search/,/home
/acgtyrant/.config/nvim/plugged/deoplete.nvim/,/home/acgtyrant/.config/nvim/plugged/nvim-yarp/,/home/acgtyrant/.config/nvim/plugged/vim-hug-neovim-rpc/,/home/acgtyrant/.config/nvim/plugged/al
e/,/home/acgtyrant/.config/nvim/plugged/rust.vim/,/home/acgtyrant/.config/nvim/plugged/vim-toml/,/home/acgtyrant/.config/nvim/plugged/rainbow/,/home/acgtyrant/.config/nvim/plugged/gruvbox/,/h
ome/acgtyrant/.config/nvim/plugged/vim-cpp-enhanced-highlight/,/home/acgtyrant/.config/nvim/plugged/indentLine/,/home/acgtyrant/.config/nvim/plugged/vim-airline/,/home/acgtyrant/.config/nvim/
plugged/vim-airline-themes/,/home/acgtyrant/.config/nvim/plugged/colorizer/,/home/acgtyrant/.config/nvim/plugged/LeaderF/,/home/acgtyrant/.config/nvim/plugged/vim-signify/,/home/acgtyrant/.co
nfig/nvim/plugged/vim-textobj-user/,/home/acgtyrant/.config/nvim/plugged/vim-textobj-indent/,/home/acgtyrant/.config/nvim/plugged/vim-textobj-syntax/,/home/acgtyrant/.config/nvim/plugged/vim-
textobj-parameter/,/etc/xdg/nvim,/home/acgtyrant/.local/share/nvim/site,/usr/local/share/nvim/site,/usr/share/nvim/site,/tmp/.mount_nvimxa579e/usr/share/nvim/runtime,/usr/share/nvim/site/afte
r,/usr/local/share/nvim/site/after,/home/acgtyrant/.local/share/nvim/site/after,/etc/xdg/nvim/after,/home/acgtyrant/.config/nvim/plugged/rust.vim/after,/home/acgtyrant/.config/nvim/plugged/vi

I can not copy the last line when I met the end it will exits.

I will debug later.

lucc commented 6 years ago

Maybe it has to do with the default installation target of vim-plug. It uses the first entry from &rtp by default. But nvimpager changes that and the plugins are not installed there. I guess /home/acgtyrant/.local/share/nvimpager/runtime/plugged is empty or does not exists?

acgtyrant commented 6 years ago

Yes, it does not exist.

lucc commented 6 years ago

I just pushed a hotfix branch. Can you try this, with /home/acgtyrant/.local/share/nvimpager/runtime/plugged still not created!

acgtyrant commented 6 years ago

The nvimpager does not complains any more.

Thank you very much for your patient and contribution.

lucc commented 6 years ago

I merged the fix in develop and v0.4.1.

acgtyrant commented 6 years ago

It is boring to link ~/.config/nvimpager, ~/.local/share/nvimpager/site, ~/.local/share/nvimpager/rplugin.vim every time. I think nvimpager can use the config from NeoVim immediately by default.

lucc commented 6 years ago

No it can not. That is a design decision. Some people (me) might have many plugins activated in nvim and do not want to load them when viewing man pages etc.

What do you mean by "every time"?

acgtyrant commented 6 years ago

I have to install nvimpager and link its config to NeoVim's config in some machines now.

acgtyrant commented 6 years ago

You decision that do not use the config from NeoVim by default is right. I find the config of NeoVim is so heavy that it slows the speed of nvimpager. I have to create a new config which simplify the config from NeoVim for nvimpager.

lucc commented 6 years ago

You can directly add some directories from your default nvim plugins to the runtimepath. My vim-plug directory is ~/.local/share/nvim/plugis/ and this is my nvimpager/init.vim:

set ignorecase
set smartcase
set runtimepath+=~/.local/share/nvim/plugins/vim-colors-solarized
set runtimepath+=~/.local/share/nvim/plugins/vim-pandoc-syntax
set runtimepath+=~/.local/share/nvim/plugins/NeoSolarized
set background=dark
colorscheme NeoSolarized
se termguicolors
let g:loaded_python_provider = 1
let g:loaded_python3_provider = 1