format with stylua

This commit is contained in:
2024-06-06 23:56:11 +02:00
parent d57eca961d
commit ae5b5fd06b
57 changed files with 994 additions and 989 deletions

View File

@ -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,