To use this, you'll need:
The curl
is required to fetch and install vim-plug.
To setup the files for NeoVim:
$ git clone [email protected]:lsdr/nvim.git nvim
$ make install
This will do the following:
- Check for existing configuration files and immediately exit if it finds one
- Put in place a
$HOME/.config
dir if it doesn't exist already - Symlink this repos to
~/.config/nvim
- Create needed dirs (plugins, tmp)
- Install vim-plug
- Fire
nvim
to install plugins declared in the configuration files
NeoVim is ready to roll just after the make
is done.
NeoVim follows the XDG Base Directory Specification, meaning that
configuration files will live in the $XDG_CONFIG_HOME
which, in turn, is
usually set to $HOME/.config
.
I don't like to keep code/settings repos spread across my $HOME
, so I leave
then in ~/Code
or something and symlink stuff where applications can find it.
The only project I had that broke this convention was my vim files, but starting fresh with NeoVim is a good opportunity to fix this.
Configuration files live in the conf.d
dir and have a two-digit trailing
number to serve as both a visual cue when I'm in a terminal working on them and
to make sure files are loaded following a logical order.
Although the latter sounds more important, in the end I care more about the former. So far, there's no need for a ordered loading process to use this setup.
Digits are used according to the following (very arbitrary) convention:
00-29
reserved for significant configuration and custom functions30-59
for programming language setup and tweaking60-89
unused for now90-99
plugins, trackers, tools, fun stuff; everything in this range can be removed and no one would notice
- Found an existing $(path to nvim) exiting
You can clean existing configurations:
make clean
🀄