Skip to content

Commit 010766c

Browse files
committed
fix: import logger lazily (fixes sindrets#500)
1 parent ad03c42 commit 010766c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/diffview/utils.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
local lazy = require("diffview.lazy")
22

33
local Job = lazy.access("diffview.job", "Job") ---@type diffview.Job|LazyModule
4+
local logger = lazy.access(_G, { "DiffviewGlobal", "logger" }) ---@type Logger
45

56
local api = vim.api
6-
local logger = DiffviewGlobal.logger
77

88
local M = {}
99

0 commit comments

Comments
 (0)