Added fnm
This commit is contained in:
@@ -1,4 +1,8 @@
|
|||||||
oh-my-posh init pwsh --config "$HOME/.theme.omp.json" | Invoke-Expression
|
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 {
|
function cdli {
|
||||||
Set-Location "C:\repos\litium"
|
Set-Location "C:\repos\litium"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,9 +2,10 @@
|
|||||||
-- external requirements
|
-- external requirements
|
||||||
-- - use nvm and install @vue/typescript-plugin globally
|
-- - 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.
|
-- 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 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 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(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)
|
print(vue_typescript_plugin_path)
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
|
|
||||||
$packages = @(
|
$packages = @(
|
||||||
|
"Schniz.fnm", # Fast node version manager
|
||||||
"wez.wezterm", # Teminal emulator
|
"wez.wezterm", # Teminal emulator
|
||||||
#"gnupg.gpg4win",
|
#"gnupg.gpg4win",
|
||||||
"microsoft.teams",
|
"microsoft.teams",
|
||||||
@@ -22,7 +23,6 @@ $packages = @(
|
|||||||
"microsoft.powershell",
|
"microsoft.powershell",
|
||||||
"Postman.Postman",
|
"Postman.Postman",
|
||||||
"docker.dockerdesktop",
|
"docker.dockerdesktop",
|
||||||
"CoreyButler.NVMforWindows" # Node version manager
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Iterate through each package and install it
|
# Iterate through each package and install it
|
||||||
@@ -30,6 +30,10 @@ foreach ($package in $packages) {
|
|||||||
winget install $package
|
winget install $package
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Install latest node LTS
|
||||||
|
fnm install 22
|
||||||
|
fnm use 22
|
||||||
|
|
||||||
|
|
||||||
npm install -g @vue/typescript-plugin@2.2.10 # for nvim
|
npm install -g @vue/typescript-plugin@2.2.10 # for nvim
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user