LazyVim/README.md

59 lines
1.3 KiB
Markdown
Raw Normal View History

2024-05-28 18:14:07 +02:00
<!-- markdownlint-disable line-length no-inline-html no-duplicate-heading -->
2023-01-22 15:45:13 +01:00
# 💤 LazyVim
2023-01-07 11:00:23 +01:00
2023-01-22 15:45:13 +01:00
A starter template for [LazyVim](https://github.com/LazyVim/LazyVim).
Refer to the [documentation](https://lazyvim.github.io/installation) to get started.
2024-05-28 18:14:07 +02:00
- check latest changes
- <https://github.com/LazyVim/LazyVim/blob/main/CHANGELOG.md>
- <https://github.com/LazyVim/LazyVim/blob/main/NEWS.md>
2023-11-09 11:26:21 +01:00
# 📦 Plugins
2024-05-28 18:14:07 +02:00
To see plugins added & removed in `lazy-lock.json` since last commit or 2 days ago:
2024-05-27 18:02:42 +02:00
```sh
diff -U30 \
<(git show HEAD:lazy-lock.json | cut -d' ' -f-3) \
<(cut -d' ' -f-3 lazy-lock.json)
2024-05-28 18:14:07 +02:00
diff -U30 \
<(git show "@{2 days ago}:lazy-lock.json" | cut -d' ' -f-3) \
<(cut -d' ' -f-3 lazy-lock.json)
```
To search for mentions of removed plugins:
```sh
2024-05-27 18:02:42 +02:00
for plugin in $(
diff -U30 \
2024-05-28 18:14:07 +02:00
<(git show "@{2 days ago}:lazy-lock.json" | cut -d' ' -f-3) \
2024-05-27 18:02:42 +02:00
<(cut -d' ' -f-3 lazy-lock.json) |
grep '^- ' |
cut -d'"' -f2);
2024-05-28 18:14:07 +02:00
do echo "\n ❌ $plugin"; rg $plugin; done
2024-05-27 18:02:42 +02:00
```
# 🛠️ Installation
## TL;DR
2024-03-26 18:12:10 +01:00
```sh
git clone https://forge.chapril.org/michel_ouba/LazyVim.git ~/.config/nvim
cd ~/.config/nvim
direnv allow
```
2024-05-27 18:02:42 +02:00
## Make a backup of your current Neovim files
2024-03-26 18:12:10 +01:00
```sh
# required
mv ~/.config/nvim{,.bak}
2024-03-26 18:12:10 +01:00
# optional but recommended
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
```