Files
lazy_config/lua/os_info.lua
Daveanand Mannie 9780f2f231 [ADDED] os detection
2025-03-28 03:28:27 -04:00

15 lines
289 B
Lua

local M = {}
-- OS detection logic
if vim.fn.has("win32") == 1 then
M.is_windows = true
elseif vim.fn.has("unix") == 1 then
M.is_linux = true
elseif vim.fn.has("mac") == 1 then -- INFO: LOL
M.is_mac = true
else
print("Unsupported OS detected!")
M.config_path = nil
end
return M