Add fnm and biome to hx

main
trivernis 1 year ago
parent 154faf9d3d
commit 0b146ca625
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG Key ID: DFFFCC2C7A02DB45

@ -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"] }

@ -425,3 +425,9 @@ source ~/.config/nushell/aliases.nu
# motd
source ~/.config/nushell/motd.nu
# fnm
source ~/.config/nushell/fnm.nu
# broot
source ~/.config/broot/launcher/nushell/br

@ -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")

@ -2,4 +2,5 @@ $env.PATH = ( $env.PATH
| prepend $'($env.HOME)/.local/bin'
| prepend $'($env.HOME)/.cargo/bin'
| prepend $'($env.HOME)/.local/share/nenv/bin'
| prepend $'($env.HOME)/.fnm'
)

Loading…
Cancel
Save