enabled script running on mac

This commit is contained in:
Ivar Fatland
2023-11-30 23:14:08 +01:00
parent 903e2666a7
commit e1e58b7647
+2 -2
View File
@@ -281,8 +281,8 @@ local function get_run_script_function(script_name)
return function() return function()
---@type "Linux" | "Darwin" | "Windows_NT" ---@type "Linux" | "Darwin" | "Windows_NT"
local os_name = vim.loop.os_uname().sysname local os_name = vim.loop.os_uname().sysname
if os_name ~= "Linux" then if os_name == "Windows_NT" then
error('run_file not implemented for non-linux platforms') error('run_file not implemented for non-unix platforms')
end end
local run_script_path = vim.fn.getcwd() .. "/" .. script_name local run_script_path = vim.fn.getcwd() .. "/" .. script_name