mhartington / nvim-typescript

Typescript tooling for Neovim
615 stars 76 forks source link

Error with TSOnBufLeave when not TS file #251

Closed conradob closed 5 years ago

conradob commented 5 years ago

Problems summary

When navigating to a non TS file it's showing an error:

Error detected while processing BufUnload Autocommands for "*.ts":
E117: Unknown function: TSOnBufLeave

Environment Information

Provide a minimal vim rc with less than 50 lines (Required!)

Running the default config for nvim-typescript, just enabling the deoplete

" Your minimal init.vim
let g:deoplete#enable_at_startup = 1

The reproduce ways from neovim starting

Moving through the files using buffers command :b 1 - Open the sample spec file :e cypress/integration/sample.spec.ts 2 - Open the fixture example file :e cypress/fixtures/example.json 3 - Switch between files with b command :b cypress/integration/sample.spec.ts :b cypress/fixtures/example.json

Example project repo?

https://github.com/omerose/cypress-support

Screen shot (if possible)

TSOnBufLeave-error

mhartington commented 5 years ago

Can you run UpdateRemotePlugins?

conradob commented 5 years ago

:UpdateRemotePlugins seems to solve the issue. I actually ran this soon after the plugin update and npm upgrade.

Thanks a lot for your support.