My LazyVim config.
Refer to LazyVim's documentation to customize it to your liking.
Install neovim then clone this repository to your user's config directory.
git clone https://github.com/asadmoosvi/lazy-nvim ~/.config/nvimIncludes a custom code runner for quick execution of single-file programs. Ships with support for C, C++, Rust, Python, Bash, Lua, and Go out of the box, with smart detection of build systems (Makefile for C/C++, Cargo for Rust). Additional languages can be added easily. Must be enabled each session to prevent accidental execution.
| Keybind | Description |
|---|---|
<leader>rr |
Run current file |
<leader>re |
Enable code runner for session |
<leader>rd |
Disable code runner |
To add support for another language, edit the runners table in lua/config/code_runner.lua:
javascript = { cmd = "node %file%", requires = "node" },cmd: The shell command to execute. Use%file%for the full file path and%output%for the path without extension (for compiled languages).requires: The name of the executable to check for before running (e.g.node,clang,python3).