Skip to content

Commit 96e6d32

Browse files
committed
fix: Change back to not supplying lazy-loading config - closes #111
This doesn't really work if the user decides to customize their own keybindings as it just causes more confusion. Provide a very simple lazy.lua out of the box.
1 parent f8dd967 commit 96e6d32

File tree

2 files changed

+11
-23
lines changed

2 files changed

+11
-23
lines changed

README.md

+11-12
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,17 @@ return {
6868
dependencies = {
6969
"echasnovski/mini.nvim" -- Needed for :ToggleCommentDebugPrints (not needed for NeoVim 0.10+)
7070
},
71+
-- The 'keys' and 'cmds' sections of this configuration are optional and only needed if
72+
-- you want to take advantage of `lazy.nvim` lazy-loading. If you decide to
73+
-- customize the keys/commands (see below), you'll need to change these too.
74+
keys = {
75+
{ "g?", mode = 'n' },
76+
{ "g?", mode = 'x' },
77+
},
78+
cmd = {
79+
"ToggleCommentDebugPrints",
80+
"DeleteDebugPrints",
81+
},
7182
}
7283
```
7384

@@ -153,18 +164,6 @@ return {
153164
delete_debug_prints = "DeleteDebugPrints",
154165
},
155166
},
156-
-- The 'keys' and 'cmds' sections of this configuration are only needed if
157-
-- you want to take advantage of `lazy.nvim` lazy-loading - and you are
158-
-- *NOT* using lazy.nvim 0.11+, where they are enabled by default for the
159-
-- default keys and commands.
160-
keys = {
161-
{ "g?", mode = 'n' },
162-
{ "g?", mode = 'x' },
163-
},
164-
cmd = {
165-
"ToggleCommentDebugPrints",
166-
"DeleteDebugPrints",
167-
},
168167
}
169168
```
170169

lazy.lua

-11
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,5 @@
11
local spec = {
22
url = "https://github.com/andrewferrier/debugprint.nvim",
3-
opts = {},
4-
-- FIXME: Work around temporary issue with lazy-loading
5-
-- keys = {
6-
-- { "g?", mode = "n" },
7-
-- { "g?", mode = "x" },
8-
-- },
9-
-- cmd = {
10-
-- "ToggleCommentDebugPrints",
11-
-- "DeleteDebugPrints",
12-
-- },
13-
-- lazy = true,
143
-- FIXME: Only introduce this line when we are about to release the next stable version otherwise this will cause a yo-yo effect
154
-- Use stable versions by default
165
-- version = '*',

0 commit comments

Comments
 (0)