diff options
| author | jdhao <jdhao@hotmail.com> | 2021-08-08 22:51:01 +0800 |
|---|---|---|
| committer | jdhao <jdhao@hotmail.com> | 2021-08-08 22:51:01 +0800 |
| commit | 6205a913b770c8fa053c22fb220fbd0c8287228a (patch) | |
| tree | 89fe387e3998bd326ace851ec6f6b327068a107d /docs | |
| parent | de7b35e0deab733e73ac585d566767c7d67884b8 (diff) | |
Neovim --> Nvim
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.md | 26 | ||||
| -rwxr-xr-x | docs/nvim_setup_linux.sh | 10 |
2 files changed, 18 insertions, 18 deletions
diff --git a/docs/README.md b/docs/README.md index acecd98..430a6f2 100644 --- a/docs/README.md +++ b/docs/README.md @@ -1,18 +1,18 @@ # Pre-requisite -There are a few dependencies if we want to use Neovim for efficient editing +There are a few dependencies if we want to use Nvim for efficient editing and development work. ## Python -A lot of Neovim plugins are mainly written in Python. To use auto-completion +A lot of Nvim 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 [Anaconda](https://www.anaconda.com/distribution/#download-section) or[Miniconda](https://docs.conda.io/en/latest/miniconda.html). Make sure that you can run `python --version`, and that the output should be Python 3.x. ## Pynvim -Neovim relies on [pynvim](https://github.com/neovim/pynvim) to communicate with +Nvim relies on [pynvim](https://github.com/neovim/pynvim) to communicate with plugins that utilize its Python binding. Pynvim is required by plugins such as [Deoplete](https://github.com/Shougo/deoplete.nvim) and [Semshi](https://github.com/numirias/semshi). @@ -128,8 +128,8 @@ listed [here](https://github.com/dense-analysis/ale/blob/master/supported-tools. ## Terminal emulators Which [terminal emulator](https://en.wikipedia.org/wiki/Terminal_emulator) we -choose to use greatly affects the appearance and functionalities of Neovim. -Since Neovim supports true colors, terminals that support true colors are +choose to use greatly affects the appearance and functionalities of Nvim. +Since Nvim supports true colors, terminals that support true colors are preferred. For a list of terminals that support true colors, see [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). @@ -147,9 +147,9 @@ using [Hack](https://github.com/powerline/fonts/tree/master/Hack), and it looks great. Another great resource for programming font is the [nerd-font](https://github.com/ryanoasis/nerd-fonts) project. -# Install Neovim +# Install Nvim -There are various ways to install Neovim based on your system. Note that some +There are various ways to install Nvim based on your system. Note that some of plugins I use require Nvim master. It is recommended to use the nightly version of nvim. @@ -159,7 +159,7 @@ We can directly download the binary release from [here](https://github.com/neovi ## Windows -The easiest way to install Neovim on Windows is via chocolatey. First, install +The easiest way to install Nvim on Windows is via chocolatey. First, install chocolatey. Then we can install neovim easily using the following command: ``` @@ -169,8 +169,8 @@ chocolatey. Then we can install neovim easily using the following command: choco install neovim ``` -The Neovim that chocolatey installs may not be up to date. To use the -cutting-edge features of Neovim, you may download [the nightly +The Nvim that chocolatey installs may not be up to date. To use the +cutting-edge features of Nvim, you may download [the nightly release](https://github.com/neovim/neovim/releases/download/nightly/nvim-win64.zip) from GitHub and manually extract it. ## macOS @@ -185,7 +185,7 @@ brew install neovim # brew install --HEAD neovim ``` -After installing Neovim, we need to add the directory where the Neovim +After installing Nvim, we need to add the directory where the Nvim executable (`nvim` on Linux and macOS, `nvim.exe` on Windows) resides to the system `PATH`. @@ -228,9 +228,9 @@ time to install all of them, depending on your network condition. # Automatic Installation for Linux # -To set up a workable Neovim environment in Linux, I use the bash script +To set up a workable Nvim environment in Linux, I use the bash script [`nvim_setup_linux.sh`](nvim_setup_linux.sh) to automatically install necessary -dependencies, Neovim itself and Nvim configs in this repo. +dependencies, Nvim itself and Nvim configs in this repo. Note that the variable `PYTHON_INSTALLED`, `SYSTEM_PYTHON` and `ADD_TO_SYSTEM_PATH` in the script should be set properly based on your diff --git a/docs/nvim_setup_linux.sh b/docs/nvim_setup_linux.sh index 29ea4cd..22c2622 100755 --- a/docs/nvim_setup_linux.sh +++ b/docs/nvim_setup_linux.sh @@ -66,7 +66,7 @@ else echo "Python is already installed. Skip installing it." fi -# Install some Python packages used by Neovim plugins. +# Install some Python packages used by Nvim plugins. echo "Installing Python packages" declare -a py_packages=("pynvim" 'python-lsp-server[all]' "black" "vim-vint" "pyls-isort" "pylsp-mypy") @@ -179,7 +179,7 @@ NVIM_SRC_NAME=$HOME/packages/nvim-linux64.tar.gz NVIM_CONFIG_DIR=$HOME/.config/nvim NVIM_LINK="https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz" if [[ ! -f "$NVIM_DIR/bin/nvim" ]]; then - echo "Installing Neovim" + echo "Installing Nvim" echo "Creating nvim directory under tools directory" if [[ ! -d "$NVIM_DIR" ]]; then @@ -187,7 +187,7 @@ if [[ ! -f "$NVIM_DIR/bin/nvim" ]]; then fi if [[ ! -f $NVIM_SRC_NAME ]]; then - echo "Downloading Neovim" + echo "Downloading Nvim" wget "$NVIM_LINK" -O "$NVIM_SRC_NAME" fi echo "Extracting neovim" @@ -197,7 +197,7 @@ if [[ ! -f "$NVIM_DIR/bin/nvim" ]]; then echo "export PATH=\"$NVIM_DIR/bin:\$PATH\"" >> "$HOME/.bash_profile" fi else - echo "Neovim is already installed. Skip installing it." + echo "Nvim is already installed. Skip installing it." fi echo "Setting up config and installing plugins" @@ -214,4 +214,4 @@ git clone --depth=1 https://github.com/wbthomason/packer.nvim \ echo "Installing plugins" "$NVIM_DIR/bin/nvim" +PackerInstall +qall -echo "Finished installing Neovim and its dependencies!" +echo "Finished installing Nvim and its dependencies!" |
