- Fixed get_source_filetypes.
This commit is contained in:
parent
fe9ba1525d
commit
f724d907ef
@ -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: 03 Jul 2013.
|
" Last Modified: 11 Jul 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
|
||||||
@ -1060,9 +1060,13 @@ function! neosnippet#get_filetype() "{{{
|
|||||||
return context_filetype
|
return context_filetype
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
function! s:get_sources_filetypes(filetype) "{{{
|
function! s:get_sources_filetypes(filetype) "{{{
|
||||||
return (exists('*neocomplcache#get_source_filetypes') ?
|
let filetypes =
|
||||||
\ neocomplcache#get_source_filetypes(a:filetype) :
|
\ exists('*neocomplete#get_source_filetypes') ?
|
||||||
\ [(a:filetype == '') ? 'nothing' : a:filetype]) + ['_']
|
\ neocomplete#get_source_filetypes(a:filetype) :
|
||||||
|
\ exists('*neocomplcache#get_source_filetypes') ?
|
||||||
|
\ neocomplcache#get_source_filetypes(a:filetype) :
|
||||||
|
\ [(a:filetype == '') ? 'nothing' : a:filetype]
|
||||||
|
return filetypes + ['_']
|
||||||
endfunction"}}}
|
endfunction"}}}
|
||||||
|
|
||||||
function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{
|
function! neosnippet#edit_complete(arglead, cmdline, cursorpos) "{{{
|
||||||
|
Loading…
Reference in New Issue
Block a user