Skip to content

Commit

Permalink
Fix for the latest denops
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Dec 31, 2023
1 parent ee5a82e commit 187ae1b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion autoload/dein/autoload.vim
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,19 @@ function! dein#autoload#_source(plugins) abort

if denops#server#status() ==# 'running'
" NOTE: denops#plugin#register() may be failed
silent! call denops#plugin#register(name, #{ mode: 'skip' })
try
call denops#plugin#load(
\ name,
\ [plugin.rtp, 'denops', name, 'main.ts']->join(s:sep),
\)
catch /^Vim\%((\a\+)\)\=:E117:/
" Fallback to `register` for backward compatibility
silent! call denops#plugin#register(
\ name,
\ [plugin.rtp, 'denops', name, 'main.ts']->join(s:sep),
\ #{ mode: 'skip' },
\)
endtry
endif

if plugin->get('denops_wait', v:true)
Expand Down

0 comments on commit 187ae1b

Please sign in to comment.