An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

## Rapid.nvim

async run (shell/build/run/make) commands on neovim.

![Untitled](https://github.com/nvimdev/rapid.nvim/assets/41671631/e3ae1afd-dad5-418c-9841-45cc9952831a)

## 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