Remove markers

This commit is contained in:
Shougo Matsushita
2017-10-01 22:40:17 +09:00
parent c86a19b06a
commit ddd01d0ee3
15 changed files with 312 additions and 342 deletions

View File

@@ -15,7 +15,7 @@ let s:source = {
\ ['matcher_fuzzy'] : ['matcher_head']),
\}
function! s:source.gather_candidates(context) abort "{{{
function! s:source.gather_candidates(context) abort
let snippets = values(neosnippet#helpers#get_completion_snippets())
if matchstr(a:context.input, '\S\+$') !=#
\ matchstr(a:context.input, '\w\+$')
@@ -23,9 +23,9 @@ function! s:source.gather_candidates(context) abort "{{{
call filter(snippets, 'v:val.options.word')
endif
return snippets
endfunction"}}}
endfunction
function! s:source.hooks.on_post_filter(context) abort "{{{
function! s:source.hooks.on_post_filter(context) abort
for snippet in a:context.candidates
let snippet.dup = 1
let snippet.menu = neosnippet#util#strwidthpart(
@@ -33,10 +33,8 @@ function! s:source.hooks.on_post_filter(context) abort "{{{
endfor
return a:context.candidates
endfunction"}}}
endfunction
function! neocomplete#sources#neosnippet#define() abort "{{{
function! neocomplete#sources#neosnippet#define() abort
return s:source
endfunction"}}}
" vim: foldmethod=marker
endfunction