init.lua/README.md
2024-01-22 14:36:34 +01:00

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` &rarr; Project files (`find_files`)
`<leader>ps` &rarr; Project search (`grep_str`)
`<leader>gf` &rarr; Git files (`git_files`)
`<leader>gs` &rarr; Git status
`<leader>u` &rarr; Undo tree
`<leader>mh` &rarr; LSP hover
`<leader>mr` &rarr; LSP rename
`<leader>ma` &rarr; LSP action
`<leader>mgd` &rarr; LSP go to definition
`<leader>mgD` &rarr; LSP go to declaration
`<leader>mgr` &rarr; LSP go to references
`<leader>mf` &rarr; LSP format