Skip to content

Commit 6bca189

Browse files
committed
Use stable stylua release
1 parent 4e3803f commit 6bca189

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed

Cargo.toml

+4-5
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
[package]
22
name = "dprint-plugin-stylua"
3-
version = "0.2.0"
4-
edition = "2021"
3+
version = "0.2.1"
54
authors = ["RubixDev"]
5+
edition = "2021"
66
homepage = "https://github.com/RubixDev/dprint-plugin-stylua"
7-
repository = "https://github.com/RubixDev/dprint-plugin-stylua"
87
license = "GPL-3.0-only"
8+
repository = "https://github.com/RubixDev/dprint-plugin-stylua"
99
description = "StyLua integration for dprint"
1010

1111
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -26,5 +26,4 @@ anyhow = "1.0.65"
2626
dprint-core = { version = "0.59.0", features = ["wasm"] }
2727
serde = { version = "1.0.145", features = ["derive"] }
2828
serde_json = "1.0.85"
29-
# TODO: Use official StyLua when merged and released
30-
stylua = { git = "https://github.com/RubixDev/StyLua", features = ["serialize", "fromstr"], default-features = false }
29+
stylua = { version = "0.15.2", features = ["serialize", "fromstr"], default-features = false }

dprint.json

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
{
2+
"lineWidth": 120,
3+
"indentWidth": 4,
4+
"useTabs": false,
5+
6+
"json": {
7+
"indentWidth": 2,
8+
"array.preferSingleLine": true
9+
},
10+
11+
"markdown": {
12+
"lineWidth": 80,
13+
"textWrap": "always"
14+
},
15+
16+
"toml": {
17+
},
18+
19+
"rustfmt": {
20+
"max_width": 100
21+
},
22+
23+
"includes": ["**/*"],
24+
"excludes": ["**/target", "/.git"],
25+
"plugins": [
26+
"https://plugins.dprint.dev/json-0.15.6.wasm",
27+
"https://plugins.dprint.dev/markdown-0.14.1.wasm",
28+
"https://plugins.dprint.dev/toml-0.5.4.wasm",
29+
"https://plugins.dprint.dev/rustfmt-0.6.2.json@886c6f3161cf020c2d75160262b0f56d74a521e05cfb91ec4f956650c8ca76ca"
30+
]
31+
}

0 commit comments

Comments
 (0)