Plug 'foo/bar', {'do': Function('baz')}
where baz
can be function! baz(info)
. The info
callback parameter has a:info.status
which I can check for 'installed'
, 'updated'
or 'force'
for when bang is used on PlugInstall!
.
g:lightline#palette().normal.middle[0][1]
, but that generate errors of non existing s:lightline
script var.
'path'
for plugin doesn't exist, it's not created for the clone....
there's no issue when it's neovim, no idea why. I get no issues with vim-plug with same code.
dein#add()
?
[[plugins]]
repo = 'ryanoasis/vim-devicons'
[[plugins]]
repo = 'mhinz/vim-startify'
depends = 'vim-devicons'
hook_add ='source ~/.config/nvim/rc/plugins/startify.vim'
hook_source = '''
function! StartifyEntryFormat()
return 'WebDevIconsGetFileTypeSymbol(absolute_path) ." ". entry_path'
endfunction
'''
[[plugins]]
repo = 'scrooloose/nerdtree'
on_map = [['n','<Plug>']]
hook_add = 'source ~/.config/nvim/rc/plugins/allkey.vim'
hook_source = 'source ~/.config/nvim/rc/plugins/nerdtree.vim'
[[plugins]]
repo = 'tiagofumo/vim-nerdtree-syntax-highlight'
depends =['nerdree','vim-devicons']
hook_add = '''
let g:NERDTreeSyntaxDisableDefaultExtensions = 1
let g:NERDTreeDisableExactMatchHighlight = 1
let g:NERDTreeDisablePatternMatchHighlight = 1
let g:NERDTreeSyntaxEnabledExtensions = ['go', 'python', 'html', 'css', 'jsx', 'js', 'vim']
'''
https://github.com/flazz/vim-colorschemes/tree/master/colors
, it solved a few problems with highlight syntax.