Inspired by VS Code's Code Runner but nowhere near as broad. neo-runner allows you to run your file without ever leaving Neovim.
- C/C++
- Python
Should I feel the need or if there is any demand for this plugin I can add more.
Use :checkhealth
to see if you meet the requirements below.
- neovim
- python3
- pynvim
Using vim-plug
Plug 'BenGH28/neo-runner.nvim', {'do': ':UpdateRemotePlugins'}
Once you :PlugInstall
run :UpdateRemotePlugins
:NeoRunner
The lone command that will compile and execute your code.
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 = ''
Header icon made by Freepik from www.flaticon.com