Skip to content

Commit

Permalink
Fix set_static_import_path
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed May 10, 2024
1 parent aa8e650 commit 4e1ae49
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions autoload/ddc.vim
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,14 @@ function ddc#update_items(name, items) abort
call ddc#denops#_notify('updateItems', [a:name, a:items])
endfunction

const s:root_dir = '<sfile>'->expand()->fnamemodify(':h:h')
function ddc#set_static_import_path() abort
" Clear current import path.
call writefile([
\ '// NOTE: It is dummy module.',
\ 'export const mods = {};',
\ ], s:root_dir .. '/denops/ddc/_mods.js')

call ddc#denops#_notify('setStaticImportPath', [])
endfunction

Expand Down

0 comments on commit 4e1ae49

Please sign in to comment.