Our great sponsors
-
dotfiles
Dotfiles are the customization files (their filenames usually begin with a period) that are used to personalize Unix-based systems. (by martinsione)
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
-
consolation.nvim
A general-purpose terminal wrapper and management plugin for neovim, written in lua
Here is how I do it, https://github.com/martinsione/dotfiles/blob/master/src/.config/nvim/lua/core/compiler.lua
For actually running your program, consider using a floating terminal plugin, for instance, this one, instead of opening an external terminal.
I wrote two plugins for exactly this purpose. One is pianocomposer321/yabs.nvim, which allows you to specify which commands (vim ex commands, or external commands) should be run for which filetype, and also where the output should go (the quickfix list, the terminal, etc). The other is pianocomposer321/consolation.nvim, which allows for easy management of terminals. These plugins will work independently of each other, but they work best together.
I wrote two plugins for exactly this purpose. One is pianocomposer321/yabs.nvim, which allows you to specify which commands (vim ex commands, or external commands) should be run for which filetype, and also where the output should go (the quickfix list, the terminal, etc). The other is pianocomposer321/consolation.nvim, which allows for easy management of terminals. These plugins will work independently of each other, but they work best together.