Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Suggestion to improve treatment of tsx files #192

Open
CGamesPlay opened this issue Dec 15, 2021 · 0 comments
Open

Suggestion to improve treatment of tsx files #192

CGamesPlay opened this issue Dec 15, 2021 · 0 comments

Comments

@CGamesPlay
Copy link

CGamesPlay commented Dec 15, 2021

One small change to my local tyspescriptreact ftplugin has improved the user experience of editing a fair amount:

" Remove > as a comment character
setl comments-=n:>

Now put this into a buffer, set ft=typescriptreact and press 6ggo. Without the change, your new line has a stray > that needs to be deleted. With this change, the line is blank.

function Foo() {
  return (
    <div
      className="foo bar baz"
      style={{ marginTop: 27, border: "solid pink 15px" }}
    >
      Hello, world!
    </div>
  );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant