Quramy / tsuquyomi

A Vim plugin for TypeScript
http://www.vim.org/scripts/script.php?script_id=5151
1.39k stars 72 forks source link

Tsuquyomi doesn't catch "experimentalDecorators" #115

Open smart--petea opened 7 years ago

smart--petea commented 7 years ago

I have tsconfig.json in the root. Tsuquyomi doesn't catch "experimentalDecorators". It throws me errors. Where is ma fault?

topaxi commented 7 years ago

Happens sometimes to me too, especially on new files. A :TsuReloadProject or reloading the file usually solves the problem for me.

greenSnot commented 4 years ago

npm i -g typescript@latest

Integrate with syntastic

If you use syntastic, you can use syntastic for displaying syntax and semantics errors instead of vim's default quickfix window. To integrate syntastic, write the following setting to your .vimrc.

let g:tsuquyomi_disable_quickfix = 1 let g:syntastic_typescript_checkers = ['tsuquyomi'] " You shouldn't use 'tsc' checker.

syntastic has default TypeScript checker whose name is 'tsc'. You shouldn't use it with running Tusuquyomi because they don't share compile options. Tusuquyomi's checker whose name is 'tsuquyomi' uses tsserver and your tsconfig.json.