Skip to content

Commit

Permalink
chore: fix warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
vyfor committed Jun 13, 2024
1 parent 4bb5786 commit c2b06b8
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lua/cord.lua
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ local force_idle = false
local problem_count = -1
local last_updated = os.clock()
local last_presence
local is_blacklisted

local function init(config)
local blacklist_len = #config.display.workspace_blacklist
Expand Down Expand Up @@ -279,7 +278,7 @@ function cord.setup(userConfig)
discord = utils.init_discord(ffi)
init(config)
if config.timer.enable then
cord.setup_autocmds(config)
cord.setup_autocmds()
start_timer(config)
end

Expand All @@ -293,7 +292,7 @@ function cord.setup(userConfig)
end
end

function cord.setup_autocmds(config)
function cord.setup_autocmds()
vim.cmd [[
autocmd! DirChanged * lua require('cord').on_dir_changed()
autocmd! FocusGained * lua require('cord').on_focus_gained()
Expand Down

0 comments on commit c2b06b8

Please sign in to comment.