format with stylua
This commit is contained in:
@ -10,11 +10,12 @@ return {
|
||||
args = { file, '-p', 'build_nvim', '--quiet', '--config-file', dir .. '/.clang-tidy' },
|
||||
cwd = dir,
|
||||
components = {
|
||||
{ 'on_result_diagnostics_quickfix', open = false},
|
||||
{ 'on_output_parse', problem_matcher = '$gcc' },
|
||||
{ 'on_result_diagnostics', remove_on_restart = true },
|
||||
{ 'restart_on_save'},
|
||||
'default' },
|
||||
{ 'on_result_diagnostics_quickfix', open = false },
|
||||
{ 'on_output_parse', problem_matcher = '$gcc' },
|
||||
{ 'on_result_diagnostics', remove_on_restart = true },
|
||||
{ 'restart_on_save' },
|
||||
'default',
|
||||
},
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
|
@ -1,26 +1,22 @@
|
||||
|
||||
return {
|
||||
name = 'CMake Build for nvim',
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { 'cmake' },
|
||||
args = { '--build', '.',
|
||||
'--', '-j8' },
|
||||
args = { '--build', '.', '--', '-j8' },
|
||||
cwd = 'build_nvim',
|
||||
-- components = {"on_output_parse", problem_matcher = "$gcc"}
|
||||
-- components = {'on_output_quickfix', set_diagnostics = true, open = true}
|
||||
components = { { "on_output_quickfix", open = true, open_on_match = true },
|
||||
{ 'on_output_parse', problem_matcher = '$gcc' },
|
||||
'default' },
|
||||
components = { { 'on_output_quickfix', open = true, open_on_match = true }, { 'on_output_parse', problem_matcher = '$gcc' }, 'default' },
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
callback = function(opts)
|
||||
if vim.fn.executable("cmake") == 0 then
|
||||
if vim.fn.executable('cmake') == 0 then
|
||||
return false, 'Command "cmake" not found'
|
||||
end
|
||||
if vim.fn.findfile("CMakeLists.txt", opts.dir .. ";") == "" then
|
||||
return false, "No CMakeLists.txt found"
|
||||
if vim.fn.findfile('CMakeLists.txt', opts.dir .. ';') == '' then
|
||||
return false, 'No CMakeLists.txt found'
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
@ -1,21 +1,19 @@
|
||||
|
||||
return {
|
||||
name = 'CMake Clean for nvim',
|
||||
builder = function()
|
||||
return {
|
||||
cmd = { 'cmake' },
|
||||
args = { '--build', '.',
|
||||
'-t', 'clean' },
|
||||
args = { '--build', '.', '-t', 'clean' },
|
||||
cwd = 'build_nvim',
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
callback = function(opts)
|
||||
if vim.fn.executable("cmake") == 0 then
|
||||
if vim.fn.executable('cmake') == 0 then
|
||||
return false, 'Command "cmake" not found'
|
||||
end
|
||||
if vim.fn.findfile("CMakeLists.txt", opts.dir .. ";") == "" then
|
||||
return false, "No CMakeLists.txt found"
|
||||
if vim.fn.findfile('CMakeLists.txt', opts.dir .. ';') == '' then
|
||||
return false, 'No CMakeLists.txt found'
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
@ -1,6 +1,7 @@
|
||||
return {
|
||||
'builtin',
|
||||
'user.cmake.configure',
|
||||
'user.cmake.build',
|
||||
'user.cmake.clean'}
|
||||
'builtin',
|
||||
'user.cmake.configure',
|
||||
'user.cmake.build',
|
||||
'user.cmake.clean',
|
||||
}
|
||||
-- https://gitlab.com/ranjithshegde/dotbare/-/tree/master/.config/nvim/lua/overseer
|
||||
|
@ -4,19 +4,17 @@ return {
|
||||
local cwd = vim.fn.getcwd()
|
||||
return {
|
||||
cmd = { 'cmake' },
|
||||
args = { '-B', 'build_nvim',
|
||||
'-S', cwd,
|
||||
'-G', 'Ninja' },
|
||||
args = { '-B', 'build_nvim', '-S', cwd, '-G', 'Ninja' },
|
||||
cwd = build_nvim,
|
||||
}
|
||||
end,
|
||||
condition = {
|
||||
callback = function(opts)
|
||||
if vim.fn.executable("cmake") == 0 then
|
||||
if vim.fn.executable('cmake') == 0 then
|
||||
return false, 'Command "cmake" not found'
|
||||
end
|
||||
if vim.fn.findfile("CMakeLists.txt", opts.dir .. ";") == "" then
|
||||
return false, "No CMakeLists.txt found"
|
||||
if vim.fn.findfile('CMakeLists.txt', opts.dir .. ';') == '' then
|
||||
return false, 'No CMakeLists.txt found'
|
||||
end
|
||||
return true
|
||||
end,
|
||||
|
Reference in New Issue
Block a user