From aaaed3d01ec3fd3d28a8fa7804fe1a0281d619b7 Mon Sep 17 00:00:00 2001
From: nick22985 <nick@nick22985.com>
Date: Fri, 10 May 2024 12:40:13 +1000
Subject: [PATCH] feat: more explicitly look for oil at the start of file_path

---
 lua/presence/init.lua | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lua/presence/init.lua b/lua/presence/init.lua
index a27459a..f270433 100644
--- a/lua/presence/init.lua
+++ b/lua/presence/init.lua
@@ -439,7 +439,7 @@ function Presence:get_project_name(file_path)
 		return nil
 	end
 	-- if filepath has oil:// remove it
-	if file_path:find("oil://") then
+	if file_path:find("^oil://") then
 		file_path = file_path:gsub("oil://", "")
 	end
 	-- Escape quotes in the file path