mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Compare commits
No commits in common. "efa7b215e7010de3d1d03cc3e4adbc5ca89f3b26" and "497f93d6c71b01803e818827836b917e2029f5b8" have entirely different histories.
efa7b215e7
...
497f93d6c7
@ -31,11 +31,7 @@ should be set properly based on your environment.
|
|||||||
|
|
||||||
## Automatic installation for Windows
|
## Automatic installation for Windows
|
||||||
|
|
||||||
Run the script [nvim_setup_windows.ps1](nvim_setup_windows.ps1) in PowerShell **with Administrator rights**:
|
Run script [nvim_setup_windows.ps1](nvim_setup_windows.ps1) under PowerShell.
|
||||||
|
|
||||||
```
|
|
||||||
.\docs\nvim_setup_windows.ps1
|
|
||||||
```
|
|
||||||
|
|
||||||
# Manual install
|
# Manual install
|
||||||
|
|
||||||
|
|||||||
@ -1,8 +1,6 @@
|
|||||||
# Set policy to avoid errors
|
|
||||||
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
|
||||||
|
|
||||||
# Install scoop
|
# Install scoop
|
||||||
Invoke-WebRequest -UseBasicParsing get.scoop.sh | Invoke-Expression
|
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
||||||
|
iwr -useb get.scoop.sh | iex
|
||||||
|
|
||||||
# Install node
|
# Install node
|
||||||
scoop install nodejs
|
scoop install nodejs
|
||||||
@ -20,7 +18,7 @@ npm install -g vim-language-server
|
|||||||
# Install bash-language-server
|
# Install bash-language-server
|
||||||
npm install -g bash-language-server
|
npm install -g bash-language-server
|
||||||
|
|
||||||
# Install miniconda3 (for Python)
|
# Install miniconda3
|
||||||
scoop install miniconda3
|
scoop install miniconda3
|
||||||
|
|
||||||
# Install pynvim
|
# Install pynvim
|
||||||
@ -29,27 +27,6 @@ pip install -U pynvim
|
|||||||
# Install python-language-server
|
# Install python-language-server
|
||||||
pip install 'python-lsp-server[all]' pylsp-mypy pyls-isort
|
pip install 'python-lsp-server[all]' pylsp-mypy pyls-isort
|
||||||
|
|
||||||
# Install visual c++ redistribution
|
|
||||||
scoop install vcredist2022
|
|
||||||
|
|
||||||
# Install 7zip
|
|
||||||
scoop install 7zip
|
|
||||||
|
|
||||||
# Install lua-language-server
|
|
||||||
$sumneko_lua_link = "https://github.com/sumneko/lua-language-server/releases/download/3.5.3/lua-language-server-3.5.3-win32-x64.zip"
|
|
||||||
$sumneko_lua_install_dir = "D:\portable_tools"
|
|
||||||
$sumneko_lua_src_dir = "$sumneko_lua_install_dir\lua-language-server.zip"
|
|
||||||
$sumneko_lua_dir = "$sumneko_lua_install_dir\lua-language-server"
|
|
||||||
|
|
||||||
# Download file, ref: https://stackoverflow.com/a/51225744/6064933
|
|
||||||
Invoke-WebRequest $sumneko_lua_link -OutFile "$sumneko_lua_src_dir"
|
|
||||||
|
|
||||||
# Extract the zip file using 7zip, ref: https://stackoverflow.com/a/41933215/6064933
|
|
||||||
7z x "$sumneko_lua_src_dir" -o"$sumneko_lua_dir"
|
|
||||||
|
|
||||||
# Setup PATH env variable, ref: https://stackoverflow.com/q/714877/6064933
|
|
||||||
[Environment]::SetEnvironmentVariable("Path", $env:Path + ";$sumneko_lua_dir\bin", "Machine")
|
|
||||||
|
|
||||||
# Install neovim nightly
|
# Install neovim nightly
|
||||||
scoop bucket add versions
|
scoop bucket add versions
|
||||||
scoop install neovim
|
scoop install neovim
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user