36 lines
862 B
Markdown
36 lines
862 B
Markdown
Neovim configuration
|
|
--------------------
|
|
|
|
This is my Neovim configuration all written in lua, **Neovim 0.8 minimum is
|
|
required**. For `Tree sitter` working properly, you need `g++` on Debian :
|
|
|
|
```
|
|
apt install g++ clang gcc
|
|
```
|
|
|
|
Then clone this repository:
|
|
|
|
```
|
|
git clone https://git.epha.se/ephase/nvim_config.git ~/.config/nvim
|
|
```
|
|
|
|
To install plugins, start nvim in headless mode with `lua/plugins.lua` config
|
|
file:
|
|
|
|
```
|
|
nvim -u ~/.config/nvim/lua/plugins.lua --headless
|
|
```
|
|
|
|
## Keybinding
|
|
|
|
Leader key is `space`
|
|
|
|
* `<leader>fm` : open file manager
|
|
* `<leader>l` : show all caracters (`space`, `tab`, `eol`)
|
|
* `<eader>[` : previous tab
|
|
* `<leader>]` : nest tab
|
|
* `<leader>gn` : gitsign - goto next hunk
|
|
* `<leader>gN` : gitsign - goto previous hunk
|
|
* `<leader>gs` : gitsign - stage hunk
|
|
* `<leader>gr` : gitsign - reset hunk
|
|
* `<leader>gd` : gitsign - diff
|