Note
Completion was added, you may add LSPs through Mason
This repository contains my minimal configuration for Neovim.
-
Clone the repository:
git clone https://github.com/xirzo/NeovimConfig ~/.config/nvim -
Start Neovim to let lazy.nvim bootstrap and install the necessary plugins:
nvim
<M-k>(Normal): Move current line up<M-j>(Normal): Move current line down<M-k>(Visual): Move selected block up<M-j>(Visual): Move selected block down
<leader>ff: Find files with Telescope<leader>/: Live grep with Telescope
<C-h>: Move to left window<C-j>: Move to window below<C-k>: Move to window above<C-l>: Move to right window
<Tab>: Go to next buffer<S-Tab>: Go to previous buffer<S-q>: Close current buffer/tab
<Esc>(Terminal): Exit to normal mode<C-q>(Terminal): Close terminal buffer
<S-z>::Compile<C-z>::Recompile
<leader>e: Open Oil file explorer- Inside Oil:
<CR>orl: Open/select file or enter directoryhor-: Go to parent directory_: Open CWD~: Change to home directorygs: Change sortg.: Toggle hidden files<C-s>: Open in vertical split<C-h>: Open in horizontal split<C-t>: Open in new tab<C-p>: Preview file<C-c>: Close Oil<C-l>: Refresh
<leader>c a: Code Actions<leader>c d: Show Diagnostics in a floating window<leader>r n: Rename symbol<leader>F: Format buffergd: Go to definitiongi: Go to implementationgr: Find referencesK: Hover documentation[d: Go to previous diagnostic]d: Go to next diagnostic