Skip to content

Latest commit

 

History

History
37 lines (28 loc) · 1.21 KB

README.md

File metadata and controls

37 lines (28 loc) · 1.21 KB

ddc-source-register

license:MIT Vim doc

Register (yanked text) source plugin for ddc.vim.

  • Supports pasting of multiple lines and control codes.
  • Supports pasting in command line mode.
  • Supports control code highlighting. (Requires highlight capable UI)

Required

Configuration

call ddc#custom#patch_global('sources', ['register'])

" Optional: Set parameters, see `:help ddc-source-register-params`.
call ddc#custom#patch_global('sourceParms', #{
      \ register: #{
      \   registers: '0123456789"+*#:',
      \   maxAbbrWidth: 100,
      \   ctrlCharHlGroup: 'Comment'
      \ }})

" Optional: Set `ddc-source-option-mark` to indicate the source name.
" Optional: Set `ddc-source-option-maxKeywordLength` to exclude too long text.
call ddc#custom#patch_global('sourceOptions', #{
      \ register: #{
      \   mark: 'Reg',
      \   maxKeywordLength: 100,
      \ }})