-
-
Notifications
You must be signed in to change notification settings - Fork 6
Install
The Lazyman installation process consists of two steps.
Step 1, clone the Lazyman repository:
git clone https://github.com/doctorfree/nvim-lazyman $HOME/.config/nvim-Lazyman
Step 2, initialize the Lazyman Neovim configuration:
$HOME/.config/nvim-Lazyman/lazyman.sh
These 2 steps perform the following:
- Download the Lazyman Neovim configuration
- Initialize the Lazyman Neovim configuration which:
- Installs Homebrew if not already installed
- Installs language servers and tools for coding diagnostics
- Installs the latest version of Neovim if not already installed
- Installs and initializes configured Neovim plugins
After the download and initialization are complete, execute the lazyman
command found in ~/.local/bin/lazyman
.
Lazyman uses Homebrew to install Neovim if there is not already Neovim 0.9 or later installed and in the execution path. In addition, Lazyman uses Homebrew to install Neovim dependencies, language servers, and tools.
The installation of Homebrew, Neovim 0.9, language servers, and tools
ensures a proper runtime environment. To avoid the installation of
Homebrew, Neovim, language servers, and tools, execute lazyman -Z
:
git clone https://github.com/doctorfree/nvim-lazyman $HOME/.config/nvim-Lazyman
$HOME/.config/nvim-Lazyman/lazyman.sh -Z
Note that circumventing the Neovim installation means that Neovim 0.9 must
be installed in some other manner. Also, language servers and tools
required by some Neovim configurations may not be present. However, some
may prefer to handle the installation of Neovim 0.9, language servers,
and tools on their own. In this case, the -Z
option is your friend.
If, after initializing Lazyman with lazyman -Z
, you wish to let Lazyman
install Neovim 0.9, language servers and tools, then issue the command
lazyman -I
or choose the Install Tools
lazyman menu option.
To bootstrap the Lazyman Neovim configuration manager, the lazyman.sh
script
must be downloaded and executed. The download can be performed with git
,
curl
, wget
, or a copy/paste.
The recommended bootstrap procedure is with git
:
Clone the repository with git
and execute lazyman.sh
:
git clone https://github.com/doctorfree/nvim-lazyman $HOME/.config/nvim-Lazyman
$HOME/.config/nvim-Lazyman/lazyman.sh
Alternatively, download the lazyman.sh
script and execute it.
For example, with curl
:
curl -fsS https://raw.githubusercontent.com/doctorfree/nvim-lazyman/main/lazyman.sh > /tmp/lazyman.sh
chmod 755 /tmp/lazyman.sh
/tmp/lazyman.sh
rm -f /tmp/lazyman.sh
Once the lazyman.sh
script has been downloaded and executed, subsequent
Lazyman operations can be performed with the lazyman
command found in
~/.local/bin/lazyman
. The manual page can be viewed with man lazyman
.
If you do not wish to use this automated installation and initialization method then manual installation and initialization is described below. Manual installation and initialization may be preferred by those who do not wish to upgrade Neovim to the latest version or by those who do not wish to use Homebrew.
Neovim 0.9 and later users can use the NVIM_APPNAME
environment variable
to control where Neovim looks for its configuration.
See the Lazyman Wiki article on Manual Installation
to manually install rather than use the automated installation feature of
the lazyman
command.