Skip to content

Commit f1ba590

Browse files
zummenixFrederik Vestre
authored andcommitted
Enable auto format for css and scss files (helix-editor#4987)
provideFormatter enables capability in LS and auto-format performs format on save
1 parent d8e9c75 commit f1ba590

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

languages.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -422,6 +422,8 @@ injection-regex = "css"
422422
file-types = ["css", "scss"]
423423
roots = []
424424
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
425+
auto-format = true
426+
config = { "provideFormatter" = true }
425427
indent = { tab-width = 2, unit = " " }
426428

427429
[[grammar]]
@@ -435,6 +437,8 @@ injection-regex = "scss"
435437
file-types = ["scss"]
436438
roots = []
437439
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
440+
auto-format = true
441+
config = { "provideFormatter" = true }
438442
indent = { tab-width = 2, unit = " " }
439443

440444
[[grammar]]

0 commit comments

Comments
 (0)