Skip to content

Commit

Permalink
fix(init.lua): Change : to . so argument self is not created
Browse files Browse the repository at this point in the history
  • Loading branch information
jiriks74 committed Apr 24, 2024
1 parent 6f542a1 commit 923c576
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/presence/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 923c576

Please sign in to comment.