Tehnix / spaceneovim
- вторник, 20 сентября 2016 г. в 03:17:49
VimL
Spacemacs for Neovim
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.
Prerequisites:
git
on your pathnvim
on your pathSpaceNeovim 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:
autoload/spaceneovim.vim
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 to vimrc.sample
If you want to develop/test out your own layers, there are two ways to do it:
g:spaceneovim_layers_repository
, e.g. let g:spaceneovim_layers_repository = 'git@github.com:Tehnix/spaceneovim-layers.git'
. This needs to be set before dotspaceneovim/auto-install
.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.