mirror of
https://github.com/mistricky/codesnap.nvim.git
synced 2024-12-31 22:17:29 -08:00
ef8c9bca99
save_path
15 lines
305 B
Lua
15 lines
305 B
Lua
local platform_utils = {}
|
|
|
|
local current_os_name = vim.loop.os_uname().sysname
|
|
|
|
function platform_utils.match_os(matches_table)
|
|
local fn = matches_table[current_os_name]
|
|
|
|
if fn == nil then
|
|
error("codesnap.nvim not supported on " .. current_os_name)
|
|
end
|
|
|
|
return fn()
|
|
end
|
|
|
|
return platform_utils
|