1
0
mirror of https://github.com/jdhao/nvim-config.git synced 2025-06-08 14:14:33 +02:00

update doc

This commit is contained in:
jdhao 2020-12-29 23:01:07 +08:00
parent f2df367d61
commit 9dc65fe118

View File

@ -20,8 +20,8 @@ plugins that utilize its Python binding. Pynvim is required by plugins such as
## pyls ## pyls
[Pyls](https://github.com/palantir/python-language-server) is a Language Server [Pyls](https://github.com/palantir/python-language-server) is a Python Language
for Python for completion, linting, go to definition, etc. Server for completion, linting, go to definition, etc.
``` ```
pip install "python-language-server[all]" pip install "python-language-server[all]"
@ -44,22 +44,26 @@ In order to use tags related plugins such as
[gutentags](https://github.com/ludovicchabant/vim-gutentags), we need to [gutentags](https://github.com/ludovicchabant/vim-gutentags), we need to
install a ctags distribution. Universal-ctags is preferred. install a ctags distribution. Universal-ctags is preferred.
To install ctags on macOS, use [Homebrew](https://github.com/universal-ctags/homebrew-universal-ctags). To install ctags on macOS, use [Homebrew](https://github.com/universal-ctags/homebrew-universal-ctags):
```bash
brew install ctags
```
To install it Windows, [use chocolatey](https://chocolatey.org/packages/universal-ctags): To install it Windows, [use chocolatey](https://chocolatey.org/packages/universal-ctags):
``` ```
choco install universal-ctags choco install universal-ctags
``` ```
To install it on Linux, we need to build it from source. See To install it on Linux, we need to build it from source. See [here](https://askubuntu.com/a/836521/768311)
[here](https://askubuntu.com/questions/796408/installing-and-using-universal-ctags-instead-of-exuberant-ctags/836521#836521)
for the details. for the details.
Set its PATH properly and make sure you can call `ctags` from command line. Set its PATH properly and make sure you can call `ctags` from command line.
## Ripgrep ## Ripgrep
[Ripgrep](https://github.com/BurntSushi/ripgrep), aka, `rg`, is a fast grep [Ripgrep](https://github.com/BurntSushi/ripgrep), aka, `rg`, is a fast greping
tool available for both Linux, Windows and macOS. It is used by several tool available for both Linux, Windows and macOS. It is used by several
searching plugins. searching plugins.
@ -77,7 +81,7 @@ various linters.
+ Vim script: [vint](https://github.com/Kuniwak/vint). + Vim script: [vint](https://github.com/Kuniwak/vint).
For other linters, please consult the plugin documentation. For For other linters, please consult the plugin documentation. For
ALE(https://github.com/dense-analysis/ale) (which is the linting plugin I [ALE](https://github.com/dense-analysis/ale) (which is the linting plugin I
currently use), a list of linters for different languages is currently use), a list of linters for different languages is
listed [here](https://github.com/dense-analysis/ale/blob/master/supported-tools.md). listed [here](https://github.com/dense-analysis/ale/blob/master/supported-tools.md).
@ -89,12 +93,9 @@ 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/), For macOS, we can use [iterm2](https://www.iterm2.com/), [kitty](https://sw.kovidgoyal.net/kitty/) or [Alacritty](https://github.com/jwilm/alacritty).
[kitty](https://sw.kovidgoyal.net/kitty/) or If you connect to Linux server on Windows, I recommend [wsltty](https://github.com/mintty/wsltty) and
[Alacritty](https://github.com/jwilm/alacritty). If you connect to Linux server [Cygwin](https://www.cygwin.com/), both of them use [mintty](https://github.com/mintty/mintty) as the terminal emulator.
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.
## Font ## Font
@ -115,14 +116,12 @@ Follow the official guide and download the appimage from the [release
page](https://github.com/neovim/neovim/releases/nightly). page](https://github.com/neovim/neovim/releases/nightly).
For some Linux systems, we may not be able to run the appimage. We can directly For some Linux systems, we may not be able to run the appimage. We can directly
download the binary release from download the binary release from [here](https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz).
[here](https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz).
## Windows ## Windows
The easiest way to install Neovim on Windows is via The easiest way to install Neovim on Windows is via chocolatey. First, install
[chocolatey](https://chocolatey.org/install). First, install chocolatey. Then chocolatey. Then we can install neovim easily following command:
we can install neovim easily following command:
``` ```
# install the latest version of neovim # install the latest version of neovim
@ -133,8 +132,7 @@ choco install neovim
The Neovim that chocolatey installs may not be up to date. To use the The Neovim that chocolatey installs may not be up to date. To use the
cutting-edge features of Neovim, you may download [the nightly cutting-edge features of Neovim, you may download [the nightly
release](https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip) release](https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip) from GitHub and manually extract it.
from GitHub and manually extract it.
## macOS ## macOS
@ -152,7 +150,8 @@ After installing Neovim, we need to add the directory where the Neovim
executable (`nvim` on Linux and macOS, `nvim.exe` on Windows) resides to the executable (`nvim` on Linux and macOS, `nvim.exe` on Windows) resides to the
system `PATH`. system `PATH`.
Make sure that you can call `nvim` from the command line after all these setups. Make sure that you can call `nvim` from the command line after all these
setups.
# Setting up Nvim # Setting up Nvim
@ -205,7 +204,7 @@ time to install all of them, depending on your network condition.
# Automatic Installation for Linux # # Automatic Installation for Linux #
To set up a workable Neovim environment in Linux, I use the script To set up a workable Neovim environment in Linux, I use the bash script
[`Nvim_setup.sh`](Nvim_setup.sh) to automatically install necessary [`Nvim_setup.sh`](Nvim_setup.sh) to automatically install necessary
dependencies, Neovim itself and Nvim configs in this repo. dependencies, Neovim itself and Nvim configs in this repo.