Add fnm and biome to hx
parent
154faf9d3d
commit
0b146ca625
@ -1,18 +1,17 @@
|
||||
[[language]]
|
||||
name = "xml"
|
||||
scope = "text.xml.basic"
|
||||
injection-regex = "xml"
|
||||
file-types = ["xml"]
|
||||
roots = []
|
||||
language-server = { command = "lemminx", args = [] }
|
||||
auto-format = false
|
||||
config = { "provideFormatter" = true }
|
||||
indent = { tab-width = 2, unit = " " }
|
||||
[language-server.biome]
|
||||
command = "biome"
|
||||
args = ["lsp-proxy"]
|
||||
|
||||
[[grammar]]
|
||||
name = "xml"
|
||||
source = { git = "https://github.com/trivernis/tree-sitter-xml", rev = "3ef1d1a92ba91445c5b4bf50a300bb61e9c9ae8a" }
|
||||
[[language]]
|
||||
name = "typescript"
|
||||
language-servers = ["typescript-language-server", "biome"]
|
||||
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.ts"] }
|
||||
|
||||
[[language]]
|
||||
name = "rust"
|
||||
name = "javascript"
|
||||
language-servers = ["typescript-language-server", "biome"]
|
||||
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.js"] }
|
||||
|
||||
[[language]]
|
||||
name = "javascript"
|
||||
formatter = { command = "biome" , args = ["format", "--stdin-file-path=file.json"] }
|
||||
|
@ -0,0 +1,10 @@
|
||||
load-env (fnm env --shell bash
|
||||
| lines
|
||||
| str replace 'export ' ''
|
||||
| str replace -a '"' ''
|
||||
| split column =
|
||||
| rename name value
|
||||
| where name != "FNM_ARCH" and name != "PATH"
|
||||
| reduce -f {} {|it, acc| $acc | upsert $it.name $it.value }
|
||||
)
|
||||
$env.PATH = ($env.PATH | prepend $"($env.FNM_MULTISHELL_PATH)/bin")
|
Loading…
Reference in New Issue