From e1e58b76476f3ace5d6766bd13708f69a8cd4dbd Mon Sep 17 00:00:00 2001 From: Ivar Fatland Date: Thu, 30 Nov 2023 23:14:08 +0100 Subject: [PATCH] enabled script running on mac --- init.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index e5861e2..d75a4b6 100644 --- a/init.lua +++ b/init.lua @@ -281,8 +281,8 @@ local function get_run_script_function(script_name) return function() ---@type "Linux" | "Darwin" | "Windows_NT" local os_name = vim.loop.os_uname().sysname - if os_name ~= "Linux" then - error('run_file not implemented for non-linux platforms') + if os_name == "Windows_NT" then + error('run_file not implemented for non-unix platforms') end local run_script_path = vim.fn.getcwd() .. "/" .. script_name