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 Dec 3, 2022
1 parent bcdb475 commit 2123e91
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions languages.toml
Original file line number Diff line number Diff line change
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 2123e91

Please sign in to comment.