[ADDED] os detection
This commit is contained in:
14
lua/os_info.lua
Normal file
14
lua/os_info.lua
Normal file
@@ -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
|
||||||
Reference in New Issue
Block a user