An open API service indexing awesome lists of open source software.

https://github.com/soywod/docker-nvim

Docker vim conf based on Alpine image
https://github.com/soywod/docker-nvim

Last synced: 3 months ago
JSON representation

Docker vim conf based on Alpine image

Awesome Lists containing this project

README

          

# Docker-nvim

Neovim in a docker container.

## Installation

```bash
./build.sh [params]
```

Params :
- `-i | --init-file `: Path to your `init.vim` file
- `-p | --plugins-file `: Path to your `plugins` file
- `-n | --image-name `: Docker image name. Default: `soywod/nvim`

## Start

### From helper

```bash
./nvim.sh target [params]
```

Params :
- `-n | --image-name `: Docker image name. Default: `soywod/nvim`

### From docker command

```bash
docker run \
--rm \
-it \
-v ":/root/workdir/" \
""
```

## Plugins

To add plugins, create a file named `plugins`, and give its path via the `-p` params to `install.sh`.
Then add on each line the plugin name (the GitHub one).

Example of a valid `plugins` file :

```text
tpope/vim-surround
tpope/vim-commentary
editorconfig/editorconfig-vim
pangloss/vim-javascript
rakr/vim-one
flowtype/vim-flow
Shougo/denite.nvim

...
```

Empty lines will be ignored.

## Tips

- To be able to start nvim via the command `nvim`, an alias is the best:

```bash
alias nvim='/path/to/nvim.sh -i -p -n '
```