Skip to content
asadmoosviPublic

About

LazyVim Neovim Config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

121 Commits

Folders and files

Repository files navigation

💤 LazyVim

My LazyVim config.

Refer to LazyVim's documentation to customize it to your liking.

Installation

Install neovim then clone this repository to your user's config directory.

git clone https://github.com/asadmoosvi/lazy-nvim ~/.config/nvim

Code Runner

Includes 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.

Keybinds

Keybind Description
<leader>rr Run current file
<leader>re Enable code runner for session
<leader>rd Disable code runner

Adding Custom Runners

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).

About

LazyVim Neovim Config

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages