tsuquyomi
tsuquyomi copied to clipboard
Install Failed - TSServer Crashing and some commands dont exist.
Hey! Im playing with VIM to see if it can replace VS Code for my Typescript/Angular2 stuff. I use vim for everything else for VS Code has so many Typescript specific features that its hard to break away from.
I decided to start again with my Vim configs to see what could be achieved.
Environnment:
- MacOS Sierra
- Iterm 2
- Vim 8.0
VimRC:
set nocompatible
set number
filetype off
set rtp+=~/.vim/bundle/Vundle.vim
call vundle#begin()
Plugin 'VundleVim/Vundle.vim'
Plugin 'scrooloose/syntastic'
Plugin 'shougo/vimproc.vim'
Plugin 'kien/ctrlp.vim'
Plugin 'valloric/youcompleteme'
" ==== Typescript Plugins
Plugin 'quramy/tsuquyomi'
Plugin 'leafgarland/typescript-vim'
Plugin 'Quramy/vim-js-pretty-template'
call vundle#end()
set backspace=indent,eol,start
set tabstop=2
colorscheme monokai
let g:molokai_original = 1
let g:rehash256 = 1
syntax enable
" | =======================
" | Plugin Configs
" | =======================
" | Typescript
" |------------------------
let g:typescript_compiler_binary = 'tsc'
let g:typescript_compiler_options = ''
autocmd QuickFixCmdPost [^l]* nested cwindow
autocmd QuickFixCmdPost l* nested lwindow
" | JS Pretty Templates
" |------------------------
autocmd FileType typescript JsPreTmpl html
autocmd FileType typescript syn clear foldBraces
" | Tsuquyomi
" |------------------------
let g:tsuquyomi_disable_quickfix = 1
let g:syntastic_typescript_checkers = ['tsuquyomi']
Error:
I have installed the vimproc plugin and run the build tools post install.
As you can see whenever I save a typescript file I get this error. Also commands such as :TsuImport
dont exist. Any ideas?
I'm facing the same issue. Is it because we use Vundle instead of Pathogen or NeoBundle? I wonder.
Me too...
getting [Tsuquyomi] Shougo/vimproc.vim is not installed. Please install it
on opening a ts file.
Figured it out:
- Make sure you add vimproc as a plugin too.
- Make sure you run the build command as specified (make).
Profit!
It's all in the instructions, just not for Vundle. Other managers seem to have post-install hooks for running make.
@silviogutierrez Appreciate the suggestion:
- Plugin is installed
- Build command ran.
I have edited my issue to account for this.
I had to run :VimProcInstall
after installing and building vimproc, then it all worked fine.