-
Install neovim (using arch btw)
sudo pacman -S neovim
-
Install packer.nvim, a package manager for neovim
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim -
Clone this repo into .config
git clone https://github.com/Nilet/nvim ~/.config/nvim -
Install packages, there are two ways of doing
Through the terminal without actually entering nvim (you might need to run it twice)
nvim -c PackerSync
Or just enter neovim and run PackerSync
nvim :PackerSync
Spaceis the leader key<leader>pPastes into selected without cutting out the content<leader>dDeletes the selected without cutting out the content<leader><leader>Sources the current file to the neovim configuration<leader>xMakes the current file executableAlt +1through3Toggles terminal inside neovim<leader>vppJumps to packer config file<leader>fmlJust watch it melt
Alt + jorAlt + kmoves the selected lines up and down, just like vscode<leader>/Comments the selected lines
yafyanks the whole file (my favorite)<leader>wSaves the current file<leader>qCloses current window<leader>sSearch and replace the current word for the whole file<leader>/Comments the selected line<leader>eToggles file explorer<leader>bnand<leader>bbCycles next and previous buffers<leader>bcCloses the current buffer<leader>uToggles undotree, extremely useful plugin
Ctrl + LeftResizes the current window to the leftCtrl + UpResizes the current window upwardsCtrl + DownResizes the current window downwardsCtrl + RightResizes the current window to the rightCtrl + hJumps to the left windowCtrl + jJumps to the upper windowCtrl + kJumps to the window belowCtrl + lJumps to the right window
<leader>pffuzzy find files in the current projectCtrl + pfuzzy find files in the current git repo<leader>psSearch for a string and fuzzy find files with it
<leader>fFormats the current fileCtrl +borncycles through items to completeCtrl + cConfirms selectiongdJumps to definitionKin visual mode displays information about the current function, or variable or whatever<leader>vcaDisplays code actions<leader>vrnRenames the current variable or function or whatever
<leader>gsToggles git status windowsInside git status window stages current lineccCreate commit<leader>pInside git status window pushes changes
├── after
│ └── plugin
│ ├── bufferline.lua
│ ├── fugitive.lua
│ ├── lsp.lua
│ ├── neodev.lua
│ ├── numb.lua
│ ├── nvim-comment.lua
│ ├── nvim-tree.lua
│ ├── telescope.lua
│ ├── toggleterm.lua
│ ├── treesitter.lua
│ ├── trouble.lua
│ └── undotree.lua
├── init.lua
└── lua
└── blz
├── init.lua
├── packer.lua
├── remap.lua
└── set.lua
- Add plugins in the packer.lua file, can access it by pressing
<leader>vppin normal mode - Create plugin specific .lua config file in the after/plugin folder
- Set native neovim configs in lua/blz/set.lua