Skip to content

Commit

Permalink
Remove old denops.vim support
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Jun 17, 2024
1 parent 30481cb commit b589def
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions autoload/ddu/denops.vim
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,13 @@ function ddu#denops#_notify(method, args) abort
return s:notify(a:method, a:args)
endfunction

function ddu#denops#_load(name, path) abort
try
call denops#plugin#load(a:name, a:path)
catch /^Vim\%((\a\+)\)\=:E117:/
" Fallback to `register` for backward compatibility
call denops#plugin#register(a:name, a:path, #{ mode: 'skip' })
endtry
endfunction

const s:root_dir = '<sfile>'->expand()->fnamemodify(':h:h:h')
const s:sep = has('win32') ? '\' : '/'
function ddu#denops#_mods() abort
return [s:root_dir, 'denops', 'ddu', '_mods.js']->join(s:sep)
endfunction
function s:register() abort
call ddu#denops#_load('ddu',
call denops#plugin#load('ddu',
\ [s:root_dir, 'denops', 'ddu', 'app.ts']->join(s:sep))

autocmd ddu User DenopsClosed ++nested call s:stopped()
Expand Down

0 comments on commit b589def

Please sign in to comment.