-- bootstrap lazy.nvim, LazyVim and your plugins if vim.g.vscode then require('config.lazyvscode') else local info = debug.getinfo(1, "S") local path_info = info.source:sub(2) local path if vim.loop.os_uname().sysname == "Windows_NT" then -- Windows platform (backslashes or forward slashes) path = path_info:match("(.*[/\\])") else -- Linux/macOS platform (forward slashes only) path = path_info:match("(.*/)") end local file, err = io.open(string.format("%s%s", path, "/baremetal"), "r") if file then file:close() require("config.lazybaremetal") else require("config.lazynvimide") end end