My Neovim config. Work in progress.
macOS
- Go to your config file and clone the repo (folder
nvimwill be created):
cd ~/.config
git clone https://github.com/lkurcak/nvim- Install dependencies
brew install ripgrep
brew install denoLinux
- Go to your config file and clone the repo (folder
nvimwill be created):
cd ~/.config
git clone https://github.com/lkurcak/nvimcurl -fsSL https://deno.land/install.sh | shWindows
- Go to your local app data directory and clone this repo (folder
nvimwill be created):
cd %LOCALAPPDATA%
git clone https://github.com/lkurcak/nvim- Install
ripgrepandzig(unless you already have a C compiler):
winget install zig.zig
winget install BurntSushi.ripgrep.MSVC- Install
denoto support.js,.ts,.json,.yamlformatting:
irm https://deno.land/install.ps1 | iexRust LSP
-
Install
rustup -
Install
rust-analyzer:
rustup component add rust-analyzer- Install
taplo:
cargo install --features lsp --locked taplo-cliLua LSP
Download latest release from https://github.com/LuaLS/lua-language-server/releases
Unzip, go to bin and make sure lua-language-server is in your OS PATH.
| Key | Action |
|---|---|
s |
Press s followed by two characters to jump there.S to do the same going backwards.gs to jump between buffers.Never move with mouse or hjkl again! |
Ctrl+z |
Undo |
Ctrl+y |
Redo |
Ctrl+s |
Save file |
Ctrl+S |
Save all |
Ctrl+p |
Open file |
Alt+f |
Format file |
Ctrl+f |
Find text |
Ctrl+r |
Rename |
Ctrl+a |
Code action |
K |
Show info |
| Key | Action |
|---|---|
gd |
Go to definition |
gD |
Go to declaration |
gi |
Go to implementation |
gr |
Find references |
Space+d |
Go to type definition |
[d |
Previous diagnostic |
]d |
Next diagnostic |
Press - to open oil file viewer. Create, rename, delete files like you would text. Save the buffer to confirm changes.
Press Ctrl+g or enter command :Git to open fugitive. Use = to expand files. Use - to stage/unstage files or parts of the code. Press cc to commit staged changes. Enter command :Git push to push commits.
Open a .http file to load kulala.nvim. Move the cursor over a HTTP request and press Enter to send it.
| Mode | Key | Action |
|---|---|---|
| Normal | - |
Show file explorer (oil) |
| Normal | L |
Show file changes |
| Normal | u |
Show edit history |
| Normal | Ctrl+g |
Open fugitive |
| Command | :RustTest |
Run rust test under cursor |
| Mode | Key | Action |
|---|---|---|
| Normal | Ctrl+6/^ |
Toggle between last two files |
| Visual | gq |
Format comments |