aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAleksey Kuznetsov2022-12-03 14:24:43 +0000
committerGitHub2022-12-03 14:24:43 +0000
commit2123e91e56caccf60b9285f30bc2f2f12952520a (patch)
treee4d29fdd1bafedd41cbc93ddd1d0dbc46db5c8e2
parentbcdb475b71b0fbabce57344ac8d2575c23b1bbe0 (diff)
Enable auto format for css and scss files (#4987)
provideFormatter enables capability in LS and auto-format performs format on save
-rw-r--r--languages.toml4
1 files changed, 4 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 9664d93a..d214a082 100644
--- a/languages.toml
+++ b/languages.toml
@@ -422,6 +422,8 @@ injection-regex = "css"
file-types = ["css", "scss"]
roots = []
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
+auto-format = true
+config = { "provideFormatter" = true }
indent = { tab-width = 2, unit = " " }
[[grammar]]
@@ -435,6 +437,8 @@ injection-regex = "scss"
file-types = ["scss"]
roots = []
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
+auto-format = true
+config = { "provideFormatter" = true }
indent = { tab-width = 2, unit = " " }
[[grammar]]