mirror of
https://github.com/SpaceVim/SpaceVim.git
synced 2025-02-02 21:00:03 +08:00
Fix neovim support
This commit is contained in:
parent
5b93bd3136
commit
475b7cbb6d
@ -10,7 +10,11 @@
|
||||
function! SpaceVim#layers#lang#typescript#plugins() abort
|
||||
let plugins = []
|
||||
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
|
||||
endfunction
|
||||
|
||||
|
@ -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', '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
|
||||
let g:deoplete#omni#input_patterns.php = get(g:deoplete#omni#input_patterns, 'php', [
|
||||
\'[^. \t0-9]\.\w*',
|
||||
|
Loading…
Reference in New Issue
Block a user