Using asyncrun

This commit is contained in:
Zoe Roux
2022-03-21 00:20:01 +01:00
parent 3e293ac58e
commit 7ed4f122d3
+2 -9
View File
@@ -3,17 +3,10 @@ local has_icon, nwicon = pcall(require, 'nvim-web-devicons')
local M = {
adapters = {},
projects = {},
config = {
runner = "AsyncRun",
},
}
table.insert(M.adapters, require "build.adapters.dotnet")
M.setup = function (config)
M.config = vim.tbl_deep_extend('keep', M.config, config)
end
M.list_projs = function ()
local projs = {}
@@ -60,8 +53,8 @@ M.build = function ()
M.select_proj(M.build)
return
end
vim.cmd(M.config.runner .. " " .. proj.adapter.build(proj))
-- TODO: escape the errorformat
vim.cmd(":copen | :AsyncRun -errorformat=" .. proj.adapter.errorformat .. " " .. proj.adapter.build(proj))
end
return M