Added fnm

This commit is contained in:
Zackarias Montell
2025-05-15 09:46:18 +02:00
parent 4f6598feb6
commit d17bcc2bb2
3 changed files with 13 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
oh-my-posh init pwsh --config "$HOME/.theme.omp.json" | Invoke-Expression
# setup fnm
fnm env --use-on-cd --shell powershell | Out-String | Invoke-Expression
function cdli {
Set-Location "C:\repos\litium"
}

View File

@@ -2,9 +2,10 @@
-- external requirements
-- - use nvm and install @vue/typescript-plugin globally
-- then ts_ls will use it for vue parsing. It is already in the arch install script.
local nvm_bin = os.getenv('nvm_home'):gsub('\n[^\n]*$', '') -- remove line endings
local node_version = vim.fn.system('nvm current'):gsub('\n[^\n]*$', '') -- remove line endings
local vue_typescript_plugin_path = vim.fs.normalize(nvm_bin .. '\\' .. node_version .. '\\node_modules\\@vue\\typescript-plugin')
--local nvm_bin = os.getenv('nvm_home'):gsub('\n[^\n]*$', '') -- remove line endings
--local node_version = vim.fn.system('nvm current'):gsub('\n[^\n]*$', '') -- remove line endings
--local vue_typescript_plugin_path = vim.fs.normalize(nvm_bin .. '\\' .. node_version .. '\\node_modules\\@vue\\typescript-plugin')
local vue_typescript_plugin_path = vim.fs.normalize('~/node_modules/@vue/typescript-plugin')
print(vue_typescript_plugin_path)

View File

@@ -2,6 +2,7 @@
$packages = @(
"Schniz.fnm", # Fast node version manager
"wez.wezterm", # Teminal emulator
#"gnupg.gpg4win",
"microsoft.teams",
@@ -22,7 +23,6 @@ $packages = @(
"microsoft.powershell",
"Postman.Postman",
"docker.dockerdesktop",
"CoreyButler.NVMforWindows" # Node version manager
)
# Iterate through each package and install it
@@ -30,6 +30,10 @@ foreach ($package in $packages) {
winget install $package
}
# Install latest node LTS
fnm install 22
fnm use 22
npm install -g @vue/typescript-plugin@2.2.10 # for nvim