/rapid.nvim

async compile on neovim

Primary LanguageLuaMIT LicenseMIT

Rapid.nvim

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

Untitled

Requirement

neovim 0.10+

Install

install with any plugin management or use packadd. then invoke setup function.

require('rapid').setup()

then bind a keymap for rapid by using vim.keymap.set

vim.keymap.set('n', '<leader>r', '<cmd>Rapid<CR>')

Options

  • timeout integer default is 10000
  • open string default is <CR>

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