SpaceNeovim is Spacemacs for Neovim. Forked from ctjhoa/spacevim and rewritten/restructured almost entirely (but still majorly inspired by the original fork).
Unlike Spacevim, SpaceNeovim specifically does not focus on support vim, and takes advantage of Neovim specific functions.
![screenshot](assets/Screenshot 2016-09-18 00.43.37.png)
Prerequisites:
git
on your pathnvim
on your path
SpaceNeovim is a configurable distribution like Spacemacs.
To start using SpaceNeovim you can use the following oneliner,
mkdir -p ~/.config/nvim/ && curl -sSfL https://raw.githubusercontent.com/tehnix/spaceneovim/master/vimrc.sample -o ~/.config/nvim/init.vim | nvim
It will download a default init.vim
which in turn takes care of setting up the
rest by:
- Downloading
autoload/spaceneovim.vim
- Setting up vim-plug
- Cloning down the layers repository
- Installing default plugins
Go to the layers repository for more information on the different layers.
To enable a layer, include it in g:dotspaceneovim_configuration_layers
inside the dotspaceneovim/init
block. For example, the following enables the +checkers/syntax-checking
layer,
let g:dotspaceneovim_configuration_layers = [
\ '+checkers/syntax-checking'
\]
You can also add custom layers to g:dotspaceneovim_additional_plugins
, which will be installed with vim-plug
.
To easily test your changes it is recommended to symlink the various files into your .config/nvim
folder. The ones you want to replace are
.config/nvim/spaceneovim-layers
to test layer changes.config/nvim/autoload/spaceneovim.vim
to test core changes.config/nvim/init.vim
to test changes tovimrc.sample
If you want to develop/test out your own layers, there are two ways to do it:
- Point to your own git repository with
g:spaceneovim_layers_repository
, e.g.let g:spaceneovim_layers_repository = '[email protected]:Tehnix/spaceneovim-layers.git'
. This needs to be set beforedotspaceneovim/auto-install
. - Manage the
spaceneovim-layers
directory yourself - the bootstrap process basically just checks if the directory exists, and if not it clones it down. Symlinking or putting in your own directory here will also work.
See LICENSE.