/neo-runner.nvim

run your current c/c++ or python buffer directly from neovim

Primary LanguagePython


Markdownify
neo-runner.nvim

Inspired by VS Code's Code Runner but nowhere near as broad. neo-runner allows you to run your file without ever leaving Neovim.

Language Support

  • C/C++
  • Python

Should I feel the need or if there is any demand for this plugin I can add more.

Requirements

Use :checkhealth to see if you meet the requirements below.

Installation

Using vim-plug

Plug 'BenGH28/neo-runner.nvim', {'do': ':UpdateRemotePlugins'}

Once you :PlugInstall run :UpdateRemotePlugins

Usage

:NeoRunner

The lone command that will compile and execute your code.

Config

neo-runner uses gcc, g++ and python3 by default for execution.

Example config

"C/C++
let g:runner_c_compiler = 'gcc'
let g:runner_cpp_compiler = 'g++'
let g:runner_c_options = '-std=c99 -Wall'
let g:runner_cpp_options = '-std=c++11 -Wall'

"Python
let g:runner_python_ex = 'python3'
let g:runner_python_options = ''

Credits

Header icon made by Freepik from www.flaticon.com