vim-shebang icon indicating copy to clipboard operation
vim-shebang copied to clipboard

#!/usr/bin/env node doesn't necesarily need to mean a javascript filetype if you are using e.g. Typescript

Open Lilja opened this issue 3 years ago • 1 comments

Stumbled upon a bug today after having used this plugin for a while.

I put my node shebang today in my file.ts typescript file, which after not completely understanding why my language server complained about me putting types into a javascript file.

Perhaps if the file extension ends with .ts, you cannot make the assumption that we are looking at a javascript file?

Lilja avatar Apr 27 '22 15:04 Lilja

image

coc.nvim complaining about the filetype, which is not typescript as I would expect here.

Lilja avatar Apr 27 '22 15:04 Lilja