2024-01-22 13:36:34 +00:00
|
|
|
# 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>`
|
|
|
|
|
2024-01-22 13:47:10 +00:00
|
|
|
`<leader>pf` → Project files (`find_files`)<br>
|
|
|
|
`<leader>ps` → Project search (`grep_str`)<br>
|
|
|
|
`<leader>gf` → Git files (`git_files`)<br>
|
|
|
|
`<leader>gs` → Git status<br>
|
|
|
|
`<leader>u` → Undo tree<br>
|
|
|
|
|
2024-01-23 18:50:31 +00:00
|
|
|
`K` → Hover<br>
|
|
|
|
`gd` → Go to definition<br>
|
|
|
|
`gD` → Go to declaration<br>
|
|
|
|
`gi` → Go to implementation<br>
|
|
|
|
`go` → Type definition<br>
|
|
|
|
`gr` → Go to references<br>
|
|
|
|
`gs` → Signature help<br>
|
|
|
|
`<F2>` → Rename<br>
|
|
|
|
`<F3>` → Format<br>
|
|
|
|
`<F4>` → Code action<br>
|