Check out user.nvim.
Fey is a configuration framework with bad defaults (so that you override them!) of Neovim inspired by Doom Emacs. It uses minpac as a package manager. Fey has two goals:
Fey uses the idea of modules
from DOOM to organize packages and configs in a sane manner. A module looks like this:
~/.config/fey/modules/ui/git
where ui
is the category and git
is the module name.
~/.config/fey/modules/ui/git/packages.lua
is the packages file, which FEY will run during fey sync
. It usually contains minpac calls.
e.g. minpac.add('tpope/vim-fugitive', {type = 'opt')
I try my best to lazy load the plugins. Sometime it even works! It is mostly ad-hoc at this early point.
Many mappings and commands from plugins will call packadd
on their first use.
POSIX-compliant shell
ripgrep and fd are nice to have, too
Clone the repo with:
git clone https://github.com/faerryn/fey_neovim.git fey_neovim
Enter the repo:
cd fey_neovim
Install the everything with:
bin/fey install
Finally, cross your fingers and nvim -u init.vim
.
If you wander off to another directory, and want to try out FEY:
nvim -u /path/to/fey/repo/init.vim
You can use chvim!
curl https://raw.githubusercontent.com/faerryn/fey_neovim/master/install.sh | sh
Your old config will be in ~/.config/nvim.backup
Clone the repo with:
git clone https://github.com/faerryn/fey_neovim.git $HOME/.config/nvim
Install the everything with:
$HOME/.config/nvim/bin/fey install
Consider adding $HOME/.config/nvim/bin
to your PATH, so you have access to fey
.
Finally, cross your fingers and nvim
.
Your configurations should be in ~/.config/fey
init.lua
returns a list of modules to be enabled.
config.lua
will be run on startup, so you can put your code there.
modules/category/module_name
will contain modules to be enabled in init.lua
Each module may contain packages.lua
and config.lua
.
packages.lua
is run during fey sync
. Use it to install plugins with minpac.
config.lua
is run during normal use. Use it to lazy-load your plugins and configure them.
To upgrade to the latest FEY:
fey upgrade
To just update the plugins without upgrading FEY:
fey sync
rm -rf ~/.local/share/nvim/site/pack/minpac
This issue should no longer exist as of f5950d7035, Sep 28 2020
fey default
This should print out the default init.lua, and you can find what got changed