Skip to content

Commit

Permalink
Enable auto format for css and scss files (helix-editor#4987)
Browse files Browse the repository at this point in the history
provideFormatter enables capability in LS and
auto-format performs format on save
  • Loading branch information
zummenix authored and Shekhinah Memmel committed Dec 11, 2022
1 parent b2e83ac commit d1363bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions languages.toml
Expand Up @@ -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]]
Expand All @@ -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]]
Expand Down

0 comments on commit d1363bb

Please sign in to comment.