Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/Shougo/ddc-source-omni

Omnifunc completion for ddc.vim
https://github.com/Shougo/ddc-source-omni

ddc-source ddc-vim

Last synced: 4 days ago
JSON representation

Omnifunc completion for ddc.vim

Awesome Lists containing this project

README

        

# ddc-source-omni

Omnifunc completion for ddc.vim

This source collects items from 'omnifunc'.

Note: It does not support all of 'omnifunc'.

## Required

### denops.vim

https://github.com/vim-denops/denops.vim

### ddc.vim

https://github.com/Shougo/ddc.vim

## Configuration

```vim
call ddc#custom#patch_global('sources', ['omni'])

call ddc#custom#patch_global('sourceOptions', #{
\ omni: #{ mark: 'O' },
\ })

" Example: Use vimtex
"call vimtex#init()
"call ddc#custom#patch_filetype(['tex'], 'sourceOptions', #{
" \ omni: #{
" \ forceCompletionPattern: g:vimtex#re#deoplete,
" \ },
" \ })
"call ddc#custom#patch_filetype(['tex'], 'sourceParams', #{
" \ omni: #{ omnifunc: 'vimtex#complete#omnifunc' },
" \ })
```