From c2b06b896df307350f841a2b44c14e87129e8c88 Mon Sep 17 00:00:00 2001 From: ReBlast Date: Thu, 13 Jun 2024 19:01:30 +0500 Subject: [PATCH] chore: fix warnings --- lua/cord.lua | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lua/cord.lua b/lua/cord.lua index 1771eb9e..97a3f165 100644 --- a/lua/cord.lua +++ b/lua/cord.lua @@ -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 @@ -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 @@ -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()