Skip to content

Commit

Permalink
Use stable stylua release
Browse files Browse the repository at this point in the history
  • Loading branch information
RubixDev committed Oct 31, 2022
1 parent 4e3803f commit 6bca189
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[package]
name = "dprint-plugin-stylua"
version = "0.2.0"
edition = "2021"
version = "0.2.1"
authors = ["RubixDev"]
edition = "2021"
homepage = "https://github.com/RubixDev/dprint-plugin-stylua"
repository = "https://github.com/RubixDev/dprint-plugin-stylua"
license = "GPL-3.0-only"
repository = "https://github.com/RubixDev/dprint-plugin-stylua"
description = "StyLua integration for dprint"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
Expand All @@ -26,5 +26,4 @@ anyhow = "1.0.65"
dprint-core = { version = "0.59.0", features = ["wasm"] }
serde = { version = "1.0.145", features = ["derive"] }
serde_json = "1.0.85"
# TODO: Use official StyLua when merged and released
stylua = { git = "https://github.com/RubixDev/StyLua", features = ["serialize", "fromstr"], default-features = false }
stylua = { version = "0.15.2", features = ["serialize", "fromstr"], default-features = false }
31 changes: 31 additions & 0 deletions dprint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
{
"lineWidth": 120,
"indentWidth": 4,
"useTabs": false,

"json": {
"indentWidth": 2,
"array.preferSingleLine": true
},

"markdown": {
"lineWidth": 80,
"textWrap": "always"
},

"toml": {
},

"rustfmt": {
"max_width": 100
},

"includes": ["**/*"],
"excludes": ["**/target", "/.git"],
"plugins": [
"https://plugins.dprint.dev/json-0.15.6.wasm",
"https://plugins.dprint.dev/markdown-0.14.1.wasm",
"https://plugins.dprint.dev/toml-0.5.4.wasm",
"https://plugins.dprint.dev/rustfmt-0.6.2.json@886c6f3161cf020c2d75160262b0f56d74a521e05cfb91ec4f956650c8ca76ca"
]
}

0 comments on commit 6bca189

Please sign in to comment.