A plugin for running projects quickly through neovim itself rather than programs such as tmux.
- 3rd party modules
- Installation
- Commands
Enter use('isaac238/terminal_run.nvim')
into your packer file.
Add require('terminal_run')
to any file that runs on startup e.g. after/plugins/terminal_run.lua
Enter Plug 'isaac238/terminal_run.nvim'
into your plug file
Add require('terminal_run')
to any file that runs on startup e.g. after/plugins/terminal_run.lua
:SetRunCommand <command>
takes the inputted command e.g.
:SetRunCommand python3 -m http.server 8000
and assigns it to that project (based on cwd). Multiple commands can be set using && e.g. to activate a python venv beforehand
:SetRunCommand source venv/bin/activate && python3 main.py
.
:Run
uses the command set previously to open a terminal buffer in neovim and run the prior command.