diff --git a/.github/workflows/luarocks.yaml b/.github/workflows/luarocks.yaml index 9f934a5..9b6664e 100644 --- a/.github/workflows/luarocks.yaml +++ b/.github/workflows/luarocks.yaml @@ -3,7 +3,7 @@ name: luarocks on: push: tags: - - "v*" + - 'v*' jobs: quality: diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b9f6659..2edf043 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -14,4 +14,4 @@ repos: hooks: - id: prettier name: prettier - files: \.(md|,toml,yaml,sh)$ + files: \.(md|toml|yaml|sh)$ diff --git a/lua/fugitive-ts/init.lua b/lua/fugitive-ts/init.lua index e6de719..4247062 100644 --- a/lua/fugitive-ts/init.lua +++ b/lua/fugitive-ts/init.lua @@ -63,12 +63,11 @@ end ---@param bufnr integer ---@return fun() local function create_debounced_highlight(bufnr) - ---@type uv_timer_t? local timer = nil return function() if timer then - timer:stop() - timer:close() + timer:stop() ---@diagnostic disable-line: undefined-field + timer:close() ---@diagnostic disable-line: undefined-field end timer = vim.uv.new_timer() timer:start(