mirror of
https://github.com/jdhao/nvim-config.git
synced 2025-06-08 14:14:33 +02:00
Add installation script for Windows, update doc
This commit is contained in:
parent
0283382f6e
commit
0830dfcf90
@ -7,8 +7,8 @@ and development work.
|
|||||||
|
|
||||||
A lot of Neovim plugins are mainly written in Python. To use auto-completion
|
A lot of Neovim plugins are mainly written in Python. To use auto-completion
|
||||||
and other features, we must install Python 3. The easiest way to install is via
|
and other features, we must install Python 3. The easiest way to install is via
|
||||||
[Anaconda](https://www.anaconda.com/distribution/#download-section) or [Miniconda](https://docs.conda.io/en/latest/miniconda.html). Make sure that the
|
[Anaconda](https://www.anaconda.com/distribution/#download-section) or[Miniconda](https://docs.conda.io/en/latest/miniconda.html). Make sure that you
|
||||||
output of `python --version` shows that Python 3.x is installed.
|
can run `python --version`, and that the output should be Python 3.x.
|
||||||
|
|
||||||
## Pynvim
|
## Pynvim
|
||||||
|
|
||||||
@ -130,13 +130,14 @@ listed [here](https://github.com/dense-analysis/ale/blob/master/supported-tools.
|
|||||||
Which [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator) we
|
Which [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator) we
|
||||||
choose to use greatly affects the appearance and functionalities of Neovim.
|
choose to use greatly affects the appearance and functionalities of Neovim.
|
||||||
Since Neovim supports true colors, terminals that support true colors are
|
Since Neovim supports true colors, terminals that support true colors are
|
||||||
preferred. For a list of terminals that support true colors, see
|
preferred. For a list of terminals that support true colors, see [here](https://github.com/termstandard/colors).
|
||||||
[here](https://github.com/termstandard/colors).
|
|
||||||
|
|
||||||
For macOS, we can use [iterm2](https://www.iterm2.com/), [kitty](https://sw.kovidgoyal.net/kitty/) or [Alacritty](https://github.com/jwilm/alacritty).
|
For macOS, we can use [iterm2](https://www.iterm2.com/), [kitty](https://sw.kovidgoyal.net/kitty/) or [Alacritty](https://github.com/jwilm/alacritty).
|
||||||
If you connect to Linux server on Windows, I recommend [wsltty](https://github.com/mintty/wsltty) and
|
If you connect to Linux server on Windows, I recommend [wsltty](https://github.com/mintty/wsltty) and
|
||||||
[Cygwin](https://www.cygwin.com/), both of them use [mintty](https://github.com/mintty/mintty) as the terminal emulator.
|
[Cygwin](https://www.cygwin.com/), both of them use [mintty](https://github.com/mintty/mintty) as the terminal emulator.
|
||||||
|
|
||||||
|
For Windows 10, you can use the new [Windows Terminal](https://github.com/microsoft/terminal).
|
||||||
|
|
||||||
## Font
|
## Font
|
||||||
|
|
||||||
Since [Vim-airline](https://github.com/vim-airline/vim-airline) uses several
|
Since [Vim-airline](https://github.com/vim-airline/vim-airline) uses several
|
||||||
@ -235,4 +236,8 @@ Note that the variable `PYTHON_INSTALLED`, `SYSTEM_PYTHON` and
|
|||||||
`ADD_TO_SYSTEM_PATH` in the script should be set properly based on your
|
`ADD_TO_SYSTEM_PATH` in the script should be set properly based on your
|
||||||
environment.
|
environment.
|
||||||
|
|
||||||
|
# Automatic installation for Windows
|
||||||
|
|
||||||
|
Run script [nvim_setup_windows.ps1](nvim_setup_windows.ps1) under PowerShell.
|
||||||
|
|
||||||
[^1]: Use `echo %userprofile%` to see where your `$HOME` is.
|
[^1]: Use `echo %userprofile%` to see where your `$HOME` is.
|
||||||
|
|||||||
29
docs/nvim_setup_windows.ps1
Normal file
29
docs/nvim_setup_windows.ps1
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
# Install scoop
|
||||||
|
Set-ExecutionPolicy RemoteSigned -scope CurrentUser
|
||||||
|
iwr -useb get.scoop.sh | iex
|
||||||
|
|
||||||
|
# Install node
|
||||||
|
scoop install nodejs
|
||||||
|
|
||||||
|
# Install ripgrep
|
||||||
|
scoop install ripgrep
|
||||||
|
|
||||||
|
# Install universal-ctags
|
||||||
|
scoop bucket add extras
|
||||||
|
scoop install universal-ctags
|
||||||
|
|
||||||
|
# Install vim-language-server
|
||||||
|
npm install -g vim-language-server
|
||||||
|
|
||||||
|
# Install miniconda3
|
||||||
|
scoop install miniconda3
|
||||||
|
|
||||||
|
# Install pynvim
|
||||||
|
pip install -U pynvim
|
||||||
|
|
||||||
|
# Install python-language-server
|
||||||
|
pip install 'python-lsp-server[all]' pylsp-mypy pyls-isort
|
||||||
|
|
||||||
|
# Install neovim nightly
|
||||||
|
scoop bucket add versions
|
||||||
|
scoop install neovim-nightly
|
||||||
Loading…
x
Reference in New Issue
Block a user