vim-shebang
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
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?

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