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>
|
|
|
|
|
|
|
|
`<leader>mh` → LSP hover<br>
|
|
|
|
`<leader>mr` → LSP rename<br>
|
|
|
|
`<leader>ma` → LSP action<br>
|
|
|
|
`<leader>mgd` → LSP go to definition<br>
|
|
|
|
`<leader>mgD` → LSP go to declaration<br>
|
|
|
|
`<leader>mgr` → LSP go to references<br>
|
|
|
|
`<leader>mf` → LSP format<br>
|