https://github.com/nvimdev/rapid.nvim
async compile on neovim
https://github.com/nvimdev/rapid.nvim
Last synced: 2 months ago
JSON representation
async compile on neovim
- Host: GitHub
- URL: https://github.com/nvimdev/rapid.nvim
- Owner: nvimdev
- License: mit
- Created: 2023-08-05T08:29:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-17T09:06:59.000Z (over 2 years ago)
- Last Synced: 2025-04-10T16:44:09.609Z (9 months ago)
- Language: Lua
- Size: 16.6 KB
- Stars: 12
- Watchers: 2
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## Rapid.nvim
async run (shell/build/run/make) commands on neovim.

## Requirement
neovim 0.10+
## Install
install with any plugin management or use `packadd`. then invoke `setup` function.
```lua
require('rapid').setup()
```
then bind a keymap for `rapid` by using `vim.keymap.set`
```lua
vim.keymap.set('n', 'r', 'Rapid')
```
## Options
- timeout integer default is 10000
- open string default is ``
## Usage
support single and pipe commands like when using gcc
- single `Compile Command: gcc test.c`
- pipe `Compile Command: gcc test.c && ./a.out`
- '%' flag for current file like `Compile Command: gcc %`
also you can run shell commands or any other commands by using Rapid
## Highlight Group
```
RapidFinished RapidTake RapidDate RapidFile RapidTargetPos
```
## License MIT