- Install
neovimhttps://neovim.io/ - Clone this repo under
~/.config/nvim - Install Packer
git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim - Open
neovimand run:PackerSyncto sync plugins
<leader> - space
<leader>wq - :wq!
<leader>q - :q!
<leader>w - :w!
,p - "p0 (paste last yanked buffer)
," - ""0 (paste last yanked buffer above the line)
<C-i> - next cursor position
<C-o> - prev cursor position
<C-p> (ctrl+p) - telescope find files (like in vscode)
<leader>fg - telescope search for text in files
<leader>fh - telescope toggle last search
<leader>tg - show git status in telescope
<leader>fc - find in clipboard history (then <cr> will copy to yank register and <c-p> will paste under cursor)
<leader>gdf - Git diff of current file
<leader>tg - show git status in telescope
<C-b> (ctrl+b) - toggle tree
a - create new file
r - rename file
d - delete file
c - copy file
p - paste file
<leader>u - toggle undo tree
<c-n> (ctrl+n) - select next accurance of text under cursor or selected
<leadr>r - rename variable under cursor
gd - go to definition of variable under the cursor
gr - show implementations of variable under the cursor
<leader>f - format text with :LspZeroFormat
<leader>p - format text with :Neoformat (prettier)