1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-02 23:50:04 +08:00

Fix neovim support

This commit is contained in:
wsdjeg 2017-09-11 21:32:11 +08:00
parent 5b93bd3136
commit 475b7cbb6d
2 changed files with 10 additions and 1 deletions

View File

@ -10,7 +10,11 @@
function! SpaceVim#layers#lang#typescript#plugins() abort function! SpaceVim#layers#lang#typescript#plugins() abort
let plugins = [] let plugins = []
call add(plugins, ['leafgarland/typescript-vim']) call add(plugins, ['leafgarland/typescript-vim'])
call add(plugins, ['Quramy/tsuquyomi']) if has('nvim')
call add(plugins, ['mhartington/nvim-typescript'])
else
call add(plugins, ['Quramy/tsuquyomi'])
endif
return plugins return plugins
endfunction endfunction

View File

@ -48,6 +48,11 @@ let g:deoplete#ignore_sources.javascript = get(g:deoplete#ignore_sources, 'javas
call deoplete#custom#set('ternjs', 'mark', 'tern') call deoplete#custom#set('ternjs', 'mark', 'tern')
call deoplete#custom#set('ternjs', 'rank', 9999) call deoplete#custom#set('ternjs', 'rank', 9999)
" typescript
let g:deoplete#ignore_sources.typescript = get(g:deoplete#ignore_sources, 'typescript', ['tag','omni', 'syntax'])
call deoplete#custom#set('typescript', 'rank', 9999)
" php " php
let g:deoplete#omni#input_patterns.php = get(g:deoplete#omni#input_patterns, 'php', [ let g:deoplete#omni#input_patterns.php = get(g:deoplete#omni#input_patterns, 'php', [
\'[^. \t0-9]\.\w*', \'[^. \t0-9]\.\w*',