Added fnm
This commit is contained in:
@@ -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"
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user