cd ~
git clone https://github.com/aming/dotfiles.git dotfiles
You could update the submodules to the latest commit available from the remote
git submodule update --init <submodules name>
# For all repos
git submodule update --init --recursive
Install the Homebrew tools
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Install Batteries to executable included
brew install aming/aming/Batteries
During the first time starting the Neovim, it will automatically download the Lazy.nvim to the .config/ folder.
After the Lazy.nvim installed and Neovim started. Run :Lazy
to start the Lazy console in Neovim.
And then I
to install all plugins.
Install the plugin by adding a new submodule to this repos
- Checkout the package to
$ZSH_CUSTOM/plugins
(zsh/oh-my-zsh-plugins/plugins/
)
git submodule add <repos> zsh/oh-my-zsh-plugins/plugins/<plugin_name>
git submodule init
- Enable it in the .zshrc
plugins=(other-plugins <plugin_name>)
- Check in the changes
git add .gitmodules
git commit
- Remove the plugin from plugins list in the zshrc
plugins=(other-plugins)
- Remove the submodules
git submodule rm zsh/oh-my-zsh-plugins/plugins/<plugin_name>
- To add a new plugin, create a new Lazy spec file under nvim/lua/plugins. And run the
:Lazy
to start the Lazy Console to install the plugins list. And remember to check in nvim/lazy-lock.json for locked plugin versions.