LazyVim/README.md

96 lines
2.0 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/NEWS.md>
2024-06-04 15:31:50 +02:00
- <https://github.com/LazyVim/LazyVim/blob/main/CHANGELOG.md>
2024-05-28 18:14:07 +02:00
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
```
2024-06-04 15:31:50 +02:00
## Noice
- `:Noice`
- `<leader>sn`
- <https://github.com/folke/noice.nvim>
- <https://www.lazyvim.org/keymaps#noicenvim>
- <https://github.com/folke/noice.nvim/wiki/A-Guide-to-Messages>
2024-06-18 15:57:33 +02:00
# 🛠️ Upgrade
## Node
After upgrading node.js with `asdf`,
you may need to execute the following commands:
```sh
npm install -g neovim
npm ls neovim
```
## Python
After upgrading python version with `asdf`,
you may need to execute the following commands:
```sh
2024-06-20 18:44:47 +02:00
# Update symbolic links
2024-06-18 15:57:33 +02:00
python -m venv --upgrade "$VIRTUAL_ENV"
2024-06-20 18:44:47 +02:00
# Install PyNvim
2024-06-18 15:57:33 +02:00
python -m pip install --upgrade pynvim
pip list --format=columns
```
# 🛠️ 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-06-18 15:57:33 +02:00
Read also the _Upgrade_ section.
And in neovim, check the output of `:LazyHealth`.
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
2024-06-20 18:44:47 +02:00
# required
2024-03-26 18:12:10 +01:00
mv ~/.config/nvim{,.bak}
2024-06-20 18:44:47 +02:00
# optional but recommended
2024-03-26 18:12:10 +01:00
mv ~/.local/share/nvim{,.bak}
mv ~/.local/state/nvim{,.bak}
mv ~/.cache/nvim{,.bak}
```