From 9780f2f2319114b66d90c27174909d8d8954f91b Mon Sep 17 00:00:00 2001 From: Daveanand Mannie Date: Fri, 28 Mar 2025 03:28:27 -0400 Subject: [PATCH] [ADDED] os detection --- lua/os_info.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 lua/os_info.lua diff --git a/lua/os_info.lua b/lua/os_info.lua new file mode 100644 index 0000000..0b9ab80 --- /dev/null +++ b/lua/os_info.lua @@ -0,0 +1,14 @@ +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