Skip to content

bggd/omnidcd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 

Repository files navigation

omnidcd

Require

Functions

omnidcd#startServer()
omnidcd#addPath(paths)
omnidcd#addPathFromDUBInCurrentDirectory()

" for completefunc or omnifunc
omnidcd#complete(findstart, base)
" for tagfunc
omnidcd#tagfunc(pattern, flags, info)

EXAMPLE

omnidcd with Vim8 on Windows 10.

example vimrc:

let g:omnidcd_server_cmd = '/Users/foo/AppData/Local/dub/packages/dcd-0.12.0/dcd/bin/dcd-server.exe'
let g:omnidcd_client_cmd = '/Users/foo/AppData/Local/dub/packages/dcd-0.12.0/dcd/bin/dcd-client.exe'

let s:include_paths = ['/D/dmd2/src/druntime/import', '/D/dmd2/src/phobos']

autocmd FileType d setlocal omnifunc=omnidcd#complete
autocmd FileType d setlocal tagfunc=omnidcd#tagfunc
command! OmniDCD call omnidcd#startServer() | call omnidcd#addPath(s:include_paths) | call omnidcd#addPathFromDUBInCurrentDirectory()

Similar

About

D completion and GotoDefinition

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published