Skip to content
This repository has been archived by the owner on Feb 5, 2023. It is now read-only.

ryicoh/ddc-register

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

ddc-register

Register completion for ddc.vim

Demo

Screen.Recording.2022-03-05.at.0.44.10.mov

Required

denops.vim

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

ddc.vim

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

Configuration

call dein#add('Shougo/ddc-around')
call dein#add('shun/ddc-vim-lsp')
call dein#add('tani/ddc-fuzzy')
call dein#add('ryicoh/ddc-register')

" Use register source.
call ddc#custom#patch_global('sources', ['vsnip', 'vim-lsp', 'around', 'register'])

" Change source options
call ddc#custom#patch_global('sources', ['vsnip', 'vim-lsp', 'around', 'register'])
call ddc#custom#patch_global('sourceOptions', {
   \ '_': {
   \   'matchers': ['matcher_fuzzy'],
   \   'sorters': ['sorter_fuzzy'],
   \   'converters': ['converter_fuzzy'],
   \ },
   \ 'around': {'mark': 'aro'},
   \ 'vsnip': {'mark': 'sni'},
   \ 'vim-lsp': {'mark': 'lsp'},
   \ 'register': { 'mark': "reg" },
   \ })

" Add your preferred the mapping
inoremap <expr> <C-x><C-r> ddc#map#manual_complete(['register'])

About

Register source for ddc.vim

Resources

Stars

Watchers

Forks