mirror of
https://github.com/helix-editor/helix.git
synced 2024-11-22 17:36:19 +04:00
Enable auto format for css and scss files (#4987)
provideFormatter enables capability in LS and auto-format performs format on save
This commit is contained in:
parent
bcdb475b71
commit
2123e91e56
@ -422,6 +422,8 @@ injection-regex = "css"
|
|||||||
file-types = ["css", "scss"]
|
file-types = ["css", "scss"]
|
||||||
roots = []
|
roots = []
|
||||||
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
|
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
|
||||||
|
auto-format = true
|
||||||
|
config = { "provideFormatter" = true }
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
@ -435,6 +437,8 @@ injection-regex = "scss"
|
|||||||
file-types = ["scss"]
|
file-types = ["scss"]
|
||||||
roots = []
|
roots = []
|
||||||
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
|
language-server = { command = "vscode-css-language-server", args = ["--stdio"] }
|
||||||
|
auto-format = true
|
||||||
|
config = { "provideFormatter" = true }
|
||||||
indent = { tab-width = 2, unit = " " }
|
indent = { tab-width = 2, unit = " " }
|
||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
|
Loading…
Reference in New Issue
Block a user