Skip to content

Commit ad03c42

Browse files
committed
fix: allow 'diffview.config' to be an entrypoint for the plugin
(fixes sindrets#498)
1 parent 9bdd553 commit ad03c42

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

lua/diffview/actions.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require("diffview.bootstrap")
2+
13
local async = require("diffview.async")
24
local lazy = require("diffview.lazy")
35

lua/diffview/config.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
require("diffview.bootstrap")
2+
13
---@diagnostic disable: deprecated
24
local EventEmitter = require("diffview.events").EventEmitter
35
local actions = require("diffview.actions")

lua/diffview/utils.lua

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
1-
local async = require("diffview.async")
21
local lazy = require("diffview.lazy")
32

43
local Job = lazy.access("diffview.job", "Job") ---@type diffview.Job|LazyModule
54

65
local api = vim.api
7-
local await = async.await
86
local logger = DiffviewGlobal.logger
97

108
local M = {}

0 commit comments

Comments
 (0)