mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-01-24 02:20:03 +08:00
31 lines
768 B
VimL
31 lines
768 B
VimL
|
"=============================================================================
|
||
|
" 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
|