Skip to content

Instantly share code, notes, and snippets.

@jssee
jssee / async_make.lua
Created August 16, 2020 19:46 — forked from phelipetls/async_make.lua
Run :make asynchronously in Neovim
local M = {}
local function has_non_whitespace(str)
return str:match("[^%s]")
end
local function fill_qflist(lines)
vim.fn.setqflist({}, "a", {
title = vim.bo.makeprg,
lines = vim.tbl_filter(has_non_whitespace, lines),