Update
This commit is contained in:
parent
1ba96a4b7f
commit
e45992bc2a
18
README.md
18
README.md
@ -1,3 +1,21 @@
|
||||
J'ai fait un dépôt spécial pour ma configuration de Neovim, je trouve ça plus aisé pour suivre l'évolution de ma configuration.
|
||||
|
||||
Dans le même ordre d'idée, je mets tout dans un seul fichier, c'est plus simple pour moi pour y naviguer.
|
||||
|
||||
# Installation
|
||||
|
||||
```bash
|
||||
/bin/bash -c "$(curl -fsSL https://gitea.fery.me/king/neovim/raw/branch/master/install.sh)"
|
||||
```
|
||||
|
||||
Cette commande :
|
||||
- crée le répertoire ~/.config/nvim/
|
||||
- y copie le fichier init.lua
|
||||
- copie le fichier ~/.local/bin/install-neovim.sh
|
||||
|
||||
# Cheatsheet
|
||||
|
||||
## Spell
|
||||
- ]s et [s : navigation entre les erreurs
|
||||
- z= : suggestion
|
||||
- zg : ajoute au dictionnaire personnalisé
|
||||
|
2
init.lua
2
init.lua
@ -42,7 +42,7 @@ require('packer').startup(function(use)
|
||||
-- LSP
|
||||
use {'neovim/nvim-lspconfig'}
|
||||
use {'williamboman/mason.nvim',
|
||||
config = require('mason').setup({}) -- https://github.com/williamboman/mason.nvim
|
||||
config = require('mason').setup() -- https://github.com/williamboman/mason.nvim
|
||||
}
|
||||
use {'williamboman/mason-lspconfig.nvim'}
|
||||
use {'j-hui/fidget.nvim',
|
||||
|
@ -58,6 +58,8 @@ if [ ! -d "$HOME/.local/share/nvim/site/pack/packer/start/" ]; then
|
||||
git clone --depth=1 https://github.com/wbthomason/packer.nvim ~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||||
fi
|
||||
|
||||
# mettre à jour la toolchain pour éviter les erreurs à l'installation
|
||||
rustup update
|
||||
cargo install tree-sitter-cli
|
||||
|
||||
cd "/tmp/neovim/"
|
||||
@ -72,4 +74,4 @@ touch ~/.local/share/nvim/shada/main.shada
|
||||
|
||||
cd neovim
|
||||
sudo make install
|
||||
nvim +PackerSync +TDUpdate +checkhealth
|
||||
nvim +PackerSync +TSUpdate +checkhealth
|
||||
|
@ -5,3 +5,4 @@ BINDIR=$HOME/.local/bin/
|
||||
mkdir "$WORKDIR"
|
||||
curl -fsSL -o "$WORKDIR/init.lua" https://gitea.fery.me/king/neovim/raw/branch/master/init.lua
|
||||
curl -fsSL -o "$BINDIR/install-neovim.sh" https://gitea.fery.me/king/neovim/raw/branch/master/install-neovim.sh
|
||||
chmod u+x "$BINDIR/install-neovim.sh"
|
||||
|
Reference in New Issue
Block a user