mirror of
https://codeberg.org/JasterV/dotfiles.git
synced 2026-04-26 18:40:04 +00:00
update json config
This commit is contained in:
parent
af3abf91bc
commit
7166c0f6e4
1 changed files with 11 additions and 0 deletions
|
|
@ -36,10 +36,21 @@ roots = ["package.json", "astro.config.mjs"]
|
||||||
formatter = { command = "prettier", args = ["--plugin", "prettier-plugin-astro", "--parser", "astro"] }
|
formatter = { command = "prettier", args = ["--plugin", "prettier-plugin-astro", "--parser", "astro"] }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
|
|
||||||
|
[language-server.jsonls]
|
||||||
|
command = "vscode-json-languageserver"
|
||||||
|
args = ["--stdio"]
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "json"
|
name = "json"
|
||||||
formatter = { command = "prettier", args = ["--parser", "json"] }
|
formatter = { command = "prettier", args = ["--parser", "json"] }
|
||||||
auto-format = true
|
auto-format = true
|
||||||
|
language-servers = [ "jsonls" ] # Link the language server to the jsonc language
|
||||||
|
|
||||||
|
[[language]]
|
||||||
|
name = "jsonc"
|
||||||
|
formatter = { command = "prettier", args = ["--parser", "json"] }
|
||||||
|
auto-format = true
|
||||||
|
language-servers = [ "jsonls" ] # Link the language server to the jsonc language
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "html"
|
name = "html"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue