Skip to content

lubomirkurcak/nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 

Repository files navigation

nvim

My Neovim config. Work in progress.

Installation

Linux

Go to your config file:

cd ~/.config

Clone the repo (folder nvim will be created):

git clone https://github.com/lubomirkurcak/nvim

Alternatively clone somewhere else and create a symlink:

ln -s "$(pwd)" ~/.config/nvim
Windows

To install this config, go to your local app data directory:

cd %LOCALAPPDATA%

Clone this repo (folder nvim will be created):

git clone https://github.com/lubomirkurcak/nvim

Alternatively clone somewhere else and create a symlink:

mklink /D %LOCALAPPDATA%\nvim %CD%

Language Servers

Rust Install `rustup` here: https://www.rust-lang.org/tools/install

You can then install rust-analyzer (Rust's LSP):

rustup component add rust-analyzer

And may as well install ripgrep to speed up searches:

cargo install ripgrep
Typescript

Install Node.js https://nodejs.org/ to get npm and install typescript and its LSP:

npm install -g typescript
npm install -g typescript-language-server
Lua

Download latest release from https://github.com/LuaLS/lua-language-server/releases

Unzip, go to bin and see the lua-language-server executable.

Add that directory to PATH so that the OS is able to find it.

Key bindings

Key Action
s, S Press s or followed by two characters, and a highlighted character to jump to. Press S to do the same going backwards. Never move with mouse or hjkl again!
Ctrl+s Save file
Ctrl+S Save all
Ctrl+p Open file
Ctrl+f Find text
Alt+f Format
Ctrl+r Rename
Ctrl+a Code action
gd Go to definition
gD Go to declaration
gi Go to implementation
gr Find references
K Show information
Space+d Go to type definition
[d Previous diagnostic
]d Next diagnostic

Releases

No releases published

Packages

No packages published

Languages