Add typescript support

This commit is contained in:
Julian Ospald 2019-05-28 17:07:12 +08:00
parent 1ce2e893f4
commit 4b5bc96115
No known key found for this signature in database
GPG Key ID: 511B62C09D50CD28
2 changed files with 22 additions and 0 deletions

View File

@ -0,0 +1,18 @@
nnoremap <leader>gd <C-]>
let g:tsuquyomi_disable_quickfix = 1
let g:ale_linters = {
\ 'typescript': ['tsserver'],
\}
call deoplete#custom#option('sources', {
\ 'typescript': ['ale', 'buffer', 'file', 'around'],
\})
call deoplete#custom#source('ale', 'rank', 999)
call deoplete#custom#source('ale', 'input_pattern', '[^. *\t]\.\w*')
autocmd FileType typescript setlocal balloonexpr=tsuquyomi#balloonexpr()

4
vimrc
View File

@ -142,6 +142,10 @@ Plug 'idanarye/vim-vebugger', { 'for': 'python' }
" scala
Plug 'derekwyatt/vim-scala', { 'for': 'scala' }
" typescript
Plug 'leafgarland/typescript-vim', { 'for': 'typescript' }
Plug 'Quramy/tsuquyomi', { 'for': 'typescript' }
" color and beauty
Plug 'tomasiser/vim-code-dark'
Plug 'romainl/Apprentice'