39 lines
905 B
Markdown
39 lines
905 B
Markdown
|
# init.lua
|
||
|
|
||
|
My NeoVIM configuration, hope you like it :)
|
||
|
|
||
|
## Installation
|
||
|
|
||
|
```sh
|
||
|
cd ~/.config/
|
||
|
rm -rf nvim/
|
||
|
git clone https://git.sofiaritz.com/sofia/init.lua nvim
|
||
|
|
||
|
# See [Packer quickstart](https://github.com/wbthomason/packer.nvim#quickstart)
|
||
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
||
|
~/.local/share/nvim/site/pack/packer/start/packer.nvim
|
||
|
|
||
|
# (ignore errors)
|
||
|
nvim
|
||
|
|
||
|
# Run :PackerSync
|
||
|
```
|
||
|
|
||
|
## Keybindings
|
||
|
|
||
|
`<leader>` is `<Space>`
|
||
|
|
||
|
`<leader>pf` → Project files (`find_files`)
|
||
|
`<leader>ps` → Project search (`grep_str`)
|
||
|
`<leader>gf` → Git files (`git_files`)
|
||
|
`<leader>gs` → Git status
|
||
|
`<leader>u` → Undo tree
|
||
|
|
||
|
`<leader>mh` → LSP hover
|
||
|
`<leader>mr` → LSP rename
|
||
|
`<leader>ma` → LSP action
|
||
|
`<leader>mgd` → LSP go to definition
|
||
|
`<leader>mgD` → LSP go to declaration
|
||
|
`<leader>mgr` → LSP go to references
|
||
|
`<leader>mf` → LSP format
|