init.lua/README.md
2024-02-22 14:19:28 +01:00

1 KiB

init.lua

My NeoVIM configuration, hope you like it :)

Installation

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>j → Prev buf
<leader>k → Next buf
<C-w> → Close buf

K → Hover
gd → Go to definition
gD → Go to declaration
gi → Go to implementation
go → Type definition
gr → Go to references
gs → Signature help
<F2> → Rename
<F3> → Format
<F4> → Code action