- Fixed neosnippet source.
This commit is contained in:
parent
9ee144e773
commit
67e38c80a9
@ -1,7 +1,7 @@
|
|||||||
"=============================================================================
|
"=============================================================================
|
||||||
" FILE: neosnippet.vim
|
" FILE: neosnippet.vim
|
||||||
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
" AUTHOR: Shougo Matsushita <Shougo.Matsu@gmail.com>
|
||||||
" Last Modified: 28 May 2013.
|
" Last Modified: 29 May 2013.
|
||||||
" License: MIT license {{{
|
" License: MIT license {{{
|
||||||
" Permission is hereby granted, free of charge, to any person obtaining
|
" Permission is hereby granted, free of charge, to any person obtaining
|
||||||
" a copy of this software and associated documentation files (the
|
" a copy of this software and associated documentation files (the
|
||||||
@ -29,9 +29,7 @@ set cpo&vim
|
|||||||
|
|
||||||
let s:source = {
|
let s:source = {
|
||||||
\ 'name' : 'neosnippet',
|
\ 'name' : 'neosnippet',
|
||||||
\ 'kind' : 'manual',
|
\ 'kind' : 'keyword',
|
||||||
\ 'min_pattern_length' :
|
|
||||||
\ g:neocomplcache_auto_completion_start_length,
|
|
||||||
\ 'rank' : 8,
|
\ 'rank' : 8,
|
||||||
\ 'hooks' : {},
|
\ 'hooks' : {},
|
||||||
\}
|
\}
|
||||||
@ -42,10 +40,6 @@ function! s:source.hooks.on_init(context) "{{{
|
|||||||
\ 'g:neosnippet#enable_preview', 0)
|
\ 'g:neosnippet#enable_preview', 0)
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! s:source.get_complete_position(context) "{{{
|
|
||||||
return match(a:context.input, '\w\+$')
|
|
||||||
endfunction"}}}
|
|
||||||
|
|
||||||
function! s:source.gather_candidates(context) "{{{
|
function! s:source.gather_candidates(context) "{{{
|
||||||
let candidates = values(neosnippet#get_snippets())
|
let candidates = values(neosnippet#get_snippets())
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user