enabled script running on mac
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user