Skip to content

lkurcak/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

nvim

My Neovim config. Work in progress.

Installation

Linux
  1. Go to your config file and clone the repo (folder nvim will be created):
cd ~/.config
git clone https://github.com/lkurcak/nvim
  1. Install ripgrep

  2. Install deno to support .js, .ts, .json, .yaml formatting:

curl -fsSL https://deno.land/install.sh | sh
Windows
  1. Go to your local app data directory and clone this repo (folder nvim will be created):
cd %LOCALAPPDATA%
git clone https://github.com/lkurcak/nvim
  1. Install ripgrep and zig (unless you already have a C compiler):
winget install zig.zig
winget install BurntSushi.ripgrep.MSVC
  1. Install deno to support .js, .ts, .json, .yaml formatting:
irm https://deno.land/install.ps1 | iex

Language servers

Rust
  1. Install rustup

  2. Install rust-analyzer:

rustup component add rust-analyzer
  1. Install taplo:
cargo install --features lsp --locked taplo-cli
Lua

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 bindings

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

Navigation

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

Other cool shortcuts

Plugins
Mode Key Action
Normal - Show file explorer (oil)
Normal L Show file changes
Normal u Show edit history
Terminal Ctrl+x Leave terminal
Command :RustTest Run rust test under cursor
Built-in
Mode Key Action
Normal Ctrl+6/^ Toggle between last two files
Visual gq Format comments

About

Neovim config

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages