1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 22:40:04 +08:00
SpaceVim/bundle/neco-syntax/autoload/neocomplete/sources/syntax.vim
2020-06-13 14:06:35 +08:00

31 lines
768 B
VimL
Vendored

"=============================================================================
" FILE: syntax.vim
" AUTHOR: Shougo Matsushita <Shougo.Matsu at gmail.com>
" License: MIT license
"=============================================================================
" Important variables.
if !exists('s:syntax_list')
let s:syntax_list = {}
endif
let s:source = {
\ 'name' : 'syntax',
\ 'kind' : 'keyword',
\ 'mark' : '[S]',
\ 'rank' : 4,
\ 'hooks' : {},
\}
function! s:source.hooks.on_init(context) abort
call necosyntax#initialize()
endfunction
function! s:source.gather_candidates(context) abort
return necosyntax#gather_candidates()
endfunction
function! neocomplete#sources#syntax#define() abort
return s:source
endfunction