From 923c5765fea422860a2b17388b4e453dfcbb4b83 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ji=C5=99=C3=AD=20=C5=A0tefka?= Date: Wed, 10 Apr 2024 14:28:48 +0200 Subject: [PATCH] fix(init.lua): Change : to . so argument `self` is not created --- lua/presence/init.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/presence/init.lua b/lua/presence/init.lua index c863791..5b6f844 100644 --- a/lua/presence/init.lua +++ b/lua/presence/init.lua @@ -720,7 +720,7 @@ function Presence:check_blacklist(buffer, parent_dirpath, project_dirpath) end -- check against git repo blacklist - local git_repo = Presence:get_git_repo_url(parent_dirpath) + local git_repo = Presence.get_git_repo_url(parent_dirpath) if git_repo then self.log:debug(string.format("Checking git repo blacklist for %s", git_repo)) else @@ -744,7 +744,7 @@ function Presence:check_blacklist(buffer, parent_dirpath, project_dirpath) return false end -function Presence:get_git_repo_url(parent_dirpath) +function Presence.get_git_repo_url(parent_dirpath) local repo_url if parent_dirpath then @@ -773,7 +773,7 @@ function Presence:get_buttons(buffer, parent_dirpath) end -- Retrieve the git repository URL - local repo_url = Presence:get_git_repo_url(parent_dirpath) + local repo_url = Presence.get_git_repo_url(parent_dirpath) -- User configured a function to dynamically create buttons table if type(self.options.buttons) == "function" then