lambdalisue / vim-fern-git-status

🌿 Add Git status badge integration on file:// scheme on fern.vim
MIT License
87 stars 6 forks source link

Colouring when first opening neovim #20

Open ghost opened 3 years ago

ghost commented 3 years ago

Obviously a low priority bug, but when opening the current directory in neovim using the terminal (e.g., using the command nvim .), colouring for git-status doesn't appear.
If opening fern after first opening neovim (eg. :Fern . or :e .), colouring is present.

The problem can be reproduced on neovim v0.5.0 with the below vimrc.

if exists('+compatible') && &compatible
  set nocompatible
endif

" Disable Vim's native pack feature
set packpath=

" Clone https://github.com/lambdalisue/fern.vim in somewhere
" and specify that directory to the below
" set runtimepath^=~/ghq/github.com/lambdalisue/fern.vim

filetype plugin indent on
syntax on
"----------------------------------------------------------------

" Add extra settings here to reproduce the issue...
call plug#begin('~/.vim/plugged')
    Plug 'lambdalisue/fern.vim'
    Plug 'lambdalisue/fern-hijack.vim'
    Plug 'lambdalisue/fern-git-status.vim'
call plug#end()
"----------------------------------------------------------------
echomsg "Custom minimal vimrc has loaded"

Thank you for the plugin!

lambdalisue commented 3 years ago

Not sure but the following lines should be the last

filetype plugin indent on
syntax on