Format workspace with CodeFormat
This commit is contained in:
+9
-9
@@ -14,24 +14,24 @@
|
||||
limitations under the License.
|
||||
]]
|
||||
|
||||
local utils = require('utils')
|
||||
local utils = require("utils")
|
||||
|
||||
-- Install lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not vim.loop.fs_stat(lazypath) then
|
||||
if utils.os_name == "Linux" then
|
||||
utils.assert_any_available({ 'curl', 'wget' })
|
||||
utils.assert_available('unzip')
|
||||
utils.assert_available('gzip')
|
||||
utils.assert_any_available({ "curl", "wget", })
|
||||
utils.assert_available("unzip")
|
||||
utils.assert_available("gzip")
|
||||
elseif utils.os_name == "Windows_NT" then
|
||||
utils.assert_any_available({ 'pwsh', 'powershell' })
|
||||
utils.assert_any_available({ '7z', 'peazip', 'arc', 'wzzip', 'rar' })
|
||||
utils.assert_any_available({ "pwsh", "powershell", })
|
||||
utils.assert_any_available({ "7z", "peazip", "arc", "wzzip", "rar", })
|
||||
else
|
||||
error('OS not supported: ' .. utils.os_name)
|
||||
error("OS not supported: " .. utils.os_name)
|
||||
end
|
||||
|
||||
utils.assert_available('git')
|
||||
utils.assert_available('tar')
|
||||
utils.assert_available("git")
|
||||
utils.assert_available("tar")
|
||||
|
||||
vim.fn.system({
|
||||
"git",
|
||||
|
||||
Reference in New Issue
Block a user