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 45ce025 commit df96090
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 11 deletions.
11 changes: 1 addition & 10 deletions autoload/ddc/denops.vim
Original file line number Diff line number Diff line change
Expand Up @@ -46,15 +46,6 @@ function ddc#denops#_init(opts = {}) abort
autocmd ddc User DenopsReady ++nested call s:register()
endfunction

function ddc#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

function ddc#denops#_running() abort
return 'g:loaded_denops'->exists()
\ && denops#server#status() ==# 'running'
Expand All @@ -81,7 +72,7 @@ function ddc#denops#_mods() abort
return [s:root_dir, 'denops', 'ddc', '_mods.js']->join(s:sep)
endfunction
function s:register() abort
call ddc#denops#_load(
call denops#plugin#load(
\ 'ddc',
\ [s:root_dir, 'denops', 'ddc', 'app.ts']->join(s:sep))

Expand Down
2 changes: 1 addition & 1 deletion denops/ddc/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export * from "jsr:@std/encoding@0.224.3/base64";
export { assertEquals, equal } from "jsr:@std/assert@0.226.0";
export { basename, parse, toFileUrl } from "jsr:@std/path@0.225.2";
export { deadline, DeadlineError } from "jsr:@std/async@0.224.2";
export { spy } from "jsr:@std/testing@0.225.1/mock";
export { spy } from "jsr:@std/testing@0.225.2/mock";

export { TimeoutError } from "https://deno.land/x/msgpack_rpc@v4.0.1/response_waiter.ts";
export { ensure, is } from "jsr:@core/unknownutil@3.18.1";
Expand Down

0 comments on commit df96090

Please sign in to comment.