dotfiles/vim/plugins/deoplete.nvim/test/autoload/deoplete/custom.vim

25 lines
700 B
VimL
Raw Normal View History

2018-04-05 13:06:54 +02:00
let s:suite = themis#suite('custom')
let s:assert = themis#helper('assert')
function! s:suite.custom() abort
call deoplete#custom#init()
call deoplete#custom#source('_',
\ 'matchers', ['matcher_head'])
call deoplete#custom#source('_', 'converters',
\ ['converter_auto_delimiter', 'remove_overlap'])
call s:assert.equals(
\ deoplete#custom#get().source,
\ {'_' : {
\ 'matchers': ['matcher_head'],
\ 'converters': ['converter_auto_delimiter', 'remove_overlap']}})
call deoplete#custom#init()
call deoplete#custom#source('buffer',
\ 'min_pattern_length', 9999)
call deoplete#custom#source('buffer', 'rank', 9999)
endfunction