2023-01-22 22:45:13 +08:00
|
|
|
# 💤 LazyVim
|
2023-01-07 18:00:23 +08:00
|
|
|
|
2023-01-22 22:45:13 +08:00
|
|
|
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
|
|
|
|
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
|
2024-04-25 16:49:20 +08:00
|
|
|
|
|
|
|
## ⚡️ Requirements
|
|
|
|
|
|
|
|
- Neovim >= **0.9.0** (needs to be built with **LuaJIT**)
|
|
|
|
- Git >= **2.19.0** (for partial clones support)
|
2024-04-25 16:58:17 +08:00
|
|
|
- a [Nerd Font](https://www.nerdfonts.com/) (v3.0 or greater) **_(optional, but needed to display some icons)_**
|
2024-04-25 16:49:20 +08:00
|
|
|
- [lazygit](https://github.com/jesseduffield/lazygit) **_(optional)_**
|
|
|
|
- a **C** compiler for `nvim-treesitter`. See [here](https://github.com/nvim-treesitter/nvim-treesitter#requirements)
|
|
|
|
- for [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) **_(optional)_**
|
|
|
|
- **live grep**: [ripgrep](https://github.com/BurntSushi/ripgrep)
|
|
|
|
- **find files**: [fd](https://github.com/sharkdp/fd)
|
|
|
|
- a terminal that support true color and _undercurl_:
|
|
|
|
- [kitty](https://github.com/kovidgoyal/kitty) **_(Linux & Macos)_**
|
|
|
|
- [wezterm](https://github.com/wez/wezterm) **_(Linux, Macos & Windows)_**
|
|
|
|
- [alacritty](https://github.com/alacritty/alacritty) **_(Linux, Macos & Windows)_**
|
|
|
|
- [iterm2](https://iterm2.com/) **_(Macos)_**
|
|
|
|
|
|
|
|
## 🛠️ Installation
|
|
|
|
|
|
|
|
<details><summary>Linux/MacOS</summary>
|
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
Install the [LazyVim](https://github.com/13maximegorov/LazyVim)
|
|
|
|
|
|
|
|
- Make a backup of your current Neovim files:
|
|
|
|
|
|
|
|
```sh
|
|
|
|
# required
|
|
|
|
mv ~/.config/nvim{,.bak}
|
|
|
|
|
|
|
|
# optional but recommended
|
|
|
|
mv ~/.local/share/nvim{,.bak}
|
|
|
|
mv ~/.local/state/nvim{,.bak}
|
|
|
|
mv ~/.cache/nvim{,.bak}
|
|
|
|
```
|
|
|
|
|
|
|
|
- Clone the LazyVim
|
|
|
|
|
|
|
|
```sh
|
|
|
|
git clone https://github.com/13maximegorov/LazyVim ~/.config/nvim
|
|
|
|
```
|
|
|
|
|
|
|
|
- Remove the `.git` folder, so you can add it to your own repo later
|
|
|
|
|
|
|
|
```sh
|
|
|
|
rm -rf ~/.config/nvim/.git
|
|
|
|
```
|
|
|
|
|
|
|
|
- Start Neovim!
|
|
|
|
|
|
|
|
```sh
|
|
|
|
nvim
|
|
|
|
```
|
|
|
|
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details><summary>Windows</summary>
|
|
|
|
|
|
|
|
Install the [LazyVim](https://github.com/13maximegorov/LazyVim)
|
|
|
|
with [PowerShell](https://github.com/PowerShell/PowerShell)
|
|
|
|
|
2024-04-25 16:49:20 +08:00
|
|
|
- Make a backup of your current Neovim files:
|
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
```powershell
|
|
|
|
# required
|
|
|
|
Move-Item $env:LOCALAPPDATA\nvim $env:LOCALAPPDATA\nvim.bak
|
2024-04-25 16:49:20 +08:00
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
# optional but recommended
|
|
|
|
Move-Item $env:LOCALAPPDATA\nvim-data $env:LOCALAPPDATA\nvim-data.bak
|
|
|
|
```
|
2024-04-25 16:49:20 +08:00
|
|
|
|
|
|
|
- Clone the LazyVim
|
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
```powershell
|
|
|
|
git clone https://github.com/13maximegorov/LazyVim $env:LOCALAPPDATA\nvim
|
|
|
|
```
|
2024-04-25 16:49:20 +08:00
|
|
|
|
|
|
|
- Remove the `.git` folder, so you can add it to your own repo later
|
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
```powershell
|
|
|
|
Remove-Item $env:LOCALAPPDATA\nvim\.git -Recurse -Force
|
|
|
|
```
|
2024-04-25 16:49:20 +08:00
|
|
|
|
|
|
|
- Start Neovim!
|
|
|
|
|
2024-04-25 16:58:17 +08:00
|
|
|
```powershell
|
|
|
|
nvim
|
|
|
|
```
|
2024-04-25 16:49:20 +08:00
|
|
|
|
|
|
|
</details>
|