Home

Awesome

<h1 align="center"> ☁️ NeoVim Server</h1> <p align="center"> <em>A containerized IDE-like text editor that runs on a web server</em> </p> <p align="center"> <a href='https://github.com/yqlbu/neovim-server/actions?query=workflow%3A"Docker+CI+Builds"'> <img src='https://github.com/yqlbu/neovim-server/workflows/Docker%20CI%20Builds/badge.svg' alt="CICD"/> </a> <img src="https://img.shields.io/github/license/yqlbu/neovim-server" alt="License"/> <a href="https://hub.docker.com/repository/docker/hikariai/nvim-server"> <img src="https://img.shields.io/badge/Docker-20.10.6-blue" alt="Version"> </a> <a href="https://github.com/neovim/neovim"> <img src="https://img.shields.io/badge/neovim-0.5.0-violet.svg" alt="NeoVim"/> </a> <a href="https://hub.docker.com/repository/docker/hikariai/nvim-servers"> <img src="https://img.shields.io/badge/platform-%20Linux%20|%20OSX%20|%20ARM-red.svg" alt="Platform"/> </a> </p>

This tool is for running NeoVim remotely and continuing the development process at 🚀 speed. You can use it to implement an IDE-like web-based terminal text editor.

screenshot

🚨 Notifications

This is project is DEPRECATED, and no longer under maintenance. However, contributions are still welcome.

✨ Features

⚙️ Prerequisites

📥 Font Installation

Notes: 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

NOTE: if your current browser cannot load the font and the icon, you may manually apply the configuration to the wetty configuration window located on the upper right corner:

{
  "fontSize": 16,
  "fontFamily": "DroidSansMono Nerd Font"
}

📥 Installation

Run with the pre-built image

docker run -d \
  --name nvim-server \
  --restart unless-stopped \
  -p 6080:3000 \
  -p 8090:8090 \
  -v ~/workspace:/workspace \
  -v /appdata/nvim-server:/config \
  -e UID=$UID \
  -e GID=$GID \
  -e TZ=Asia/Shanghai \
  -e USER=<USER> \
  -e SECRET=<PASSWORD> \
  hikariai/nvim-server:latest

Watch the logs

$ docker logs nvim-server --follow

Notes:

ParametersUsage
--name nvim-serverSpecify the name for the container
-p 6080:3000Map the port for accessing the Web UI
-p 8090:8090Map the port for the Instant Markdown Preview Server
-v ~/workspace:/workspaceMap the working directory
-v /appdata/nvim-server:/configContain all relevant configuration config directory
-e UID=$UIDMap current user ID
-e GID=$GIDMap current group ID
-e TZ=<TZ>Specify a timezone to use e.g. Asia/Shanghai
-e USER=<USER>Specify the username for user login, default is set to guest
-e SECRET=<SECRET>Specify the password for user login, default is set to password

Build the image manually

Follow the instruction HERE

UNRAID User ONLY

NeoVim Sever is now available on unRAID CA. Search nvim server and install

Detailed installation guide is available HERE

💡 Usage

📋 Wiki

💬 F.A.Q

🔨 Useful Tools for Vim

📝 TODO

📝 Reference

⚖️ License

MIT (C) Kevin Yu