feat(nvim): updated config to use vim.pack instead of lazy
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
name = "CMake Build",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "cmake" },
|
||||
args = { "--build", "build", "--target", "all" },
|
||||
components = {
|
||||
{ "on_output_quickfix", set_diagnostics = true },
|
||||
"on_result_diagnostics",
|
||||
"default",
|
||||
},
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = { "cpp", "c" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
return {
|
||||
name = "CMake Create",
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { "cmake" },
|
||||
args = { "-B", "build", "-S", "." },
|
||||
components = {
|
||||
{ "on_output_quickfix", set_diagnostics = true },
|
||||
"on_result_diagnostics",
|
||||
"default",
|
||||
},
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
filetype = { "cpp", "c" },
|
||||
},
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
return { "user.cmake_create", "user.cmake_build" }
|
||||
@@ -0,0 +1,34 @@
|
||||
local M = {}
|
||||
|
||||
M.problem_patterns = {
|
||||
["$rustc"] = {
|
||||
{
|
||||
regexp = "^(error|warning)(\\[E\\d+\\])*:(.*)$",
|
||||
message = 3
|
||||
},
|
||||
{
|
||||
regexp = "^\\s+-+>\\s*([^:]*):(\\d+):(\\d+)$",
|
||||
kind = "location",
|
||||
file = 1,
|
||||
line = 2,
|
||||
column = 3
|
||||
},
|
||||
{
|
||||
regexp = "^(\\s|\\d)+(\\||=).*$"
|
||||
},
|
||||
{
|
||||
regexp = "^$"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
M.problem_matchers = {
|
||||
["$rustc"] = {
|
||||
fileLocation = { "relative", "${cwd}" },
|
||||
pattern = "$rustc",
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
return M
|
||||
|
||||
Reference in New Issue
Block a user