Skip to content

Execute make (or any shell command) without blocking Neovim and output to QuickFix

License

Notifications You must be signed in to change notification settings

sakhnik/make-async.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

make-async.nvim

Execute make (or any shell command) without blocking Neovim and output to QuickFix. Useful for long-running builds, especially with gradle. The QuickFix window will popup automatically. The build can be interrupted with the conventional keystroke CTRL-c.

Installation

Install with any package manager from sakhnik/make-async.nvim.

Initialize:

require'make-async.nvim'.setup {}

Usage

Make

Set 'makeprg' to the desired command.

:set makeprg=./gradlew\ assemble

Then kick off the build:

:lua require'make-async.nvim'.make()

Or the same with a key mapping <leader>mm.

Arbitrary shell command

If a shell command is to be executed without modifying makeprg, try this:

:X ./another-build-script.sh

About

Execute make (or any shell command) without blocking Neovim and output to QuickFix

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages