Skip to content

Commit

Permalink
fix: Change back to not supplying lazy-loading config - closes #111
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
andrewferrier committed Jul 11, 2024
1 parent f8dd967 commit 96e6d32
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 23 deletions.
23 changes: 11 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ return {
dependencies = {
"echasnovski/mini.nvim" -- Needed for :ToggleCommentDebugPrints (not needed for NeoVim 0.10+)
},
-- The 'keys' and 'cmds' sections of this configuration are optional and only needed if
-- you want to take advantage of `lazy.nvim` lazy-loading. If you decide to
-- customize the keys/commands (see below), you'll need to change these too.
keys = {
{ "g?", mode = 'n' },
{ "g?", mode = 'x' },
},
cmd = {
"ToggleCommentDebugPrints",
"DeleteDebugPrints",
},
}
```

Expand Down Expand Up @@ -153,18 +164,6 @@ return {
delete_debug_prints = "DeleteDebugPrints",
},
},
-- The 'keys' and 'cmds' sections of this configuration are only needed if
-- you want to take advantage of `lazy.nvim` lazy-loading - and you are
-- *NOT* using lazy.nvim 0.11+, where they are enabled by default for the
-- default keys and commands.
keys = {
{ "g?", mode = 'n' },
{ "g?", mode = 'x' },
},
cmd = {
"ToggleCommentDebugPrints",
"DeleteDebugPrints",
},
}
```

Expand Down
11 changes: 0 additions & 11 deletions lazy.lua
Original file line number Diff line number Diff line change
@@ -1,16 +1,5 @@
local spec = {
url = "https://github.com/andrewferrier/debugprint.nvim",
opts = {},
-- FIXME: Work around temporary issue with lazy-loading
-- keys = {
-- { "g?", mode = "n" },
-- { "g?", mode = "x" },
-- },
-- cmd = {
-- "ToggleCommentDebugPrints",
-- "DeleteDebugPrints",
-- },
-- lazy = true,
-- FIXME: Only introduce this line when we are about to release the next stable version otherwise this will cause a yo-yo effect
-- Use stable versions by default
-- version = '*',
Expand Down

0 comments on commit 96e6d32

Please sign in to comment.