vim-prettier
vim-prettier copied to clipboard
WIP: detect js by shebang and run by filetype
Re: #340
Summary
Although these same lines work for me in my local config, This doesn't work directly in the vim-prettier plugin.
However, for someone who actually knows vimscript and how plugins work, I imagine understanding the intent and making the change for it to work will be trivial.
Test Plan
- Create the test file
./test-no-extension
with these contents:./test-no-extension
#!/usr/bin/env node function main() { console.log('Hello'); }
- Open the file
vim ./test-no-extension
- Save the file
:w
If it auto-formats, it worked.