" This configuration does not take into account anything other than " neovim in unix. let mapleader = "\" lua <'), ':h') . '/rc/' let g:dein#inline_vimrcs = ['options.vim', 'mappings.vim'] let g:dein#inline_vimrcs = map(g:dein#inline_vimrcs, { _, v -> s:base_dir . v }) let s:dein_toml = s:base_dir . 'dein.toml' let s:dein_lazy_toml = s:base_dir . 'deinlazy.toml' let s:dein_ft_toml = s:base_dir . 'deinft.toml' let s:dein_lsp_toml = s:base_dir . 'deinlsp.toml' let s:cmp_toml = s:base_dir . 'cmp.toml' let s:scorpeon_toml = s:base_dir . 'scorpeon.toml' call dein#begin(s:path) call dein#load_toml(s:dein_toml, {'lazy': 0}) call dein#load_toml(s:dein_lazy_toml, {'lazy' : 1}) call dein#load_toml(s:dein_ft_toml, {'lazy' : 1}) call dein#load_toml(s:dein_lsp_toml, {'lazy' : 1}) call dein#load_toml(s:cmp_toml, {'lazy' : 1}) call dein#load_toml(s:scorpeon_toml, {'lazy' : 1}) call dein#end() call dein#save_state() endif call dein#call_hook('source') autocmd VimEnter * call dein#call_hook('post_source') if dein#check_install() call dein#install() endif command! -nargs=0 DeinUpdate call s:update() function! s:update() abort if exists('g:dein#install_github_api_token') call dein#check_update(v:true) else call dein#update() endif endfunction