Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

WIP: detect js by shebang and run by filetype#341

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
coolaj86 wants to merge3 commits intoprettier:master
base:master
Choose a base branch
Loading
fromcoolaj86:js-shebang

Conversation

@coolaj86
Copy link
Contributor

@coolaj86coolaj86 commentedMar 6, 2023
edited
Loading

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

  1. Create the test file./test-no-extension with these contents:
    ./test-no-extension
    #!/usr/bin/env nodefunctionmain(){console.log('Hello');}
  2. Open the file
    vim ./test-no-extension
  3. Save the file
    :w

If it auto-formats, it worked.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

@coolaj86

[8]ページ先頭

©2009-2025 Movatter.jp