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

It seems like dprint doesn't consider the prettier plugin to format Rust files, even with Rust plugin enabled #85

Open
stevenroose opened this issue Sep 16, 2024 · 1 comment

Comments

@stevenroose
Copy link

I have the following config:

{
	"useTabs": true,
	"lineWidth": 100,
	"prettier": {
		"useTabs": true,
		"trailingComma": "all",
		"singleQuote": true,
		"proseWrap": "always",
		"plugins": [ "prettier-plugin-rust" ]
	},
	"plugins": [
		"https://plugins.dprint.dev/prettier-0.46.1.json@e5bd083088a8dfc6e5ce2d3c9bee81489b065bd5345ef55b59f5d96627928b7a"
	]
}

But somehow dprint fmt doesn't want to touch the Rust files in my project.

@rod24574575
Copy link

rod24574575 commented Feb 3, 2025

Maybe you should add "associations" ?

{
  "prettier": {
    ...
    "associations": [
      "**/*.rs"
    ]
  }
}

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

2 participants