junegunn / vim-plug

:hibiscus: Minimalist Vim Plugin Manager
https://junegunn.github.io/vim-plug/
MIT License
34.01k stars 1.93k forks source link

certain plugins don't load #753

Closed ghost closed 6 years ago

ghost commented 6 years ago
Hi, I'm new to neovim and I'm using your plugin manager to manage all my plugins. I've been trying to solve this issue where the plugins don't load correctly and I'm not sure why.

Here is :version

NVIM v0.2.2
Build type: RelWithDebInfo
LuaJIT 2.0.5
Compilation: C:/msys64/mingw64/bin/gcc.exe -Wconversion -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -O2 -g -DMI
N_LOG_LEVEL=3 -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wimplicit-fallthrough
 -D__USE_MINGW_ANSI_STDIO -D_WIN32_WINNT=0x0600 -Wvla -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -IC:/pro
jects/neovim/build/config -IC:/projects/neovim/src -IC:/projects/neovim/.deps/usr/include -IC:/projects/neovim/.deps/usr
/include -IC:/msys64/mingw64/include -IC:/projects/neovim/.deps/usr/include -IC:/projects/neovim/.deps/usr/include -IC:/
projects/neovim/.deps/usr/include -IC:/msys64/mingw64/include -IC:/msys64/mingw64/include -IC:/projects/neovim/build/src
/nvim/auto -IC:/projects/neovim/build/include
Compiled by appveyor@APPVYR-WIN

Features: -acl +iconv -jemalloc +tui
See ":help feature-compile"

   system vimrc file: "$VIM\sysinit.vim"
  fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"

Run :checkhealth for more info

Here is :PlugStatus

  1 Finished. 0 error(s).                                   |  1
  2 [======]                                                |~
  3                                                         |~
  4 - vim-fugitive: OK                                      |~
  5 - ctrlp.vim: OK                                         |~
  6 - vim-airline: OK                                       |~
  7 - syntastic: OK                                         |~
  8 - nerdtree: OK                                          |~
  9 - vim-colors-solarized: OK

It shows that all the plugins are loaded, but the colorscheme doesn't show. Also the vim-airline plugin doesn't show the status bar it's supposed to have.. but keybindings from ctrlp.vim work... as well as commands from vim-fugitive.

This is my init.vim

set number
set expandtab
set tabstop=4
set shiftwidth=4

call plug#begin('C:\\Users\\Arjun\\AppData\\Local\\nvim\\plugged')

Plug 'scrooloose/syntastic'
Plug 'altercation/vim-colors-solarized'
Plug 'tpope/vim-fugitive'
Plug 'kien/ctrlp.vim'
Plug 'bling/vim-airline'
Plug 'scrooloose/nerdtree'

call plug#end()

syntax enable
set background=dark
colorscheme solarized

Here is a screenshot of a simple c file opened in my neovim: https://ibb.co/nBcL6x

As you can see solarized doesn't show as well as vim-airline

Also if you want :checkhealth here it is: https://ibb.co/b2p6eH

vim-plug shows that there are no errors loading the plugins, but obviously as seen in the screenshot above certain plugins don't load.

And I'm using Windows CMD, I've also tried cmder as an alternative and that doesn't work either to fix the problem.

yeshengm commented 6 years ago

having similar issues in NeoVim

janlazo commented 6 years ago

neovim TUI is not ready yet on Windows. Use one of the GUIs which embeds neovim such as neovim-qt, included in the Appveyor zip.

Default Windows terminal supports 16 colors (but neovim reports 8 colors only in t_Co) so it's not surprising that solarized doesn't work as expected.

This is not vim-plug's problem so report this to the neovim team. They likely recommend that you use a GUI instead.

yeshengm commented 6 years ago

@janlazo I guess this issue is related to cross file system cache. I'm sure that my config works on my PC, but when I use my vimrc on a server, vim-plug is broken. My server config is like this: both ~/.vimrc and ~/.vim directory are symlinks to a local ext4 fs, while the home directory is mounted on an NFS. Then I find my change to vimrc is not recognized by vim-plug. Originally I have all this configs on NFS, which leads to slow vim startup time but works fine, but when I change vim config to local ext4fs, the plugin system does not work.

janlazo commented 6 years ago

@manifoldQAQ vim-plug doesn't resolve the path given to plug#begin. Resolve the symlink yourself or open a PR with your solution. On Windows, Vim/Neovim's resolve() works only with shortcuts, not symlinks/junctions. On Linux, you can use resolve. vim-plug resolves the symlink for itself (not the plugins) in https://github.com/junegunn/vim-plug/commit/537a5321aaaddaff10ef49d5c82111de4032e4b6 so PlugUpgrade should work.

What you're describing is a different issue from the TUI issue here.

ghost commented 6 years ago

So I guess you guys can close this issue and I'll report it to the folks at Neovim