Skip to content

Installation

Chinglong Yu edited this page Feb 4, 2021 · 22 revisions

Table of Contents

Requirements

  • Docker >= 19.03
  • Nerd Font is required to install, or you may encounter font distrotion issue

Install Docker Daemon on Linux (amd64/arm64)

sudo wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker $USER
sudo systemctl enable docker

You may find installation guides on other platforms HERE

Install Nerd Font

Notes:

  • Driod Sans Mono Nerd Font is required to be downloaded since it is the default font of the container. You may find the installation guide below. To use other fonts, please find the instructions on the Nerd Font repository
  • reboot might be needed after the font installation

Linux

mkdir -p ~/.local/share/fonts
cd ~/.local/share/fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf

macOS

cd ~/Library/Fonts && curl -fLo "Droid Sans Mono for Powerline Nerd Font Complete.otf" https://github.com/ryanoasis/nerd-fonts/raw/master/patched-fonts/DroidSansMono/complete/Droid%20Sans%20Mono%20Nerd%20Font%20Complete.otf

Arch User ONLY

yay -S nerd-fonts-droid-sans-mono

Install Neovim Server

Since Neovim Server is compiled in a containerized environment, simply pull the latest container image from Docker Hub to finish the installation

docker pull hikariai/nvim-server:latest

Check out all available tags on Docker Hub

Build Container Image Manually

To customize the container in your preference, you may build the image manually and add/remove the pre-built plugins in ./nvim/vim-plugs/plugins.vim

The pre-built image comes with several common coc-extensions, you may modify the extension list to adjust your need. Simply follow the instructions on the Customization Page

Notes:

  • docker-compose is required
  • The pre-built image comes with several common coc-extensions, you may modify the extension list to adjust your need. Simply follow the instructions on the Customization Page
  • To install additional coc-extensions without modifying the extension list, follow the guides on coc-nvim Wiki
docker-compose build neovim-server