Skip to content

Commit

Permalink
add warning
Browse files Browse the repository at this point in the history
  • Loading branch information
LintaoAmons committed May 25, 2024
1 parent 9b35cf9 commit 122be70
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
> [!WARNING]
> There's a new patch comming, which has a thorough overhaul of the config module and will cause breaking changes.
> Please use tag to pin the version if you don't want to modify your current configuration
> If you want to try it now, you can switch to `config-refacor` branch or pr `37`
## Create scratch file

Create temporary playground files
Expand All @@ -19,6 +24,7 @@ using your favorate plugin manager, for example [lazy.nvim](https://github.com/f
```lua
{
"LintaoAmons/scratch.nvim",
tags = "v0.13.2",
event = "VeryLazy",
}
```
Expand Down
12 changes: 12 additions & 0 deletions plugin/scratch_plugin.lua
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,15 @@ end, { range = true })
for _, v in ipairs(commands) do
vim.api.nvim_create_user_command(v.name, v.callback, {})
end

vim.notify(
[[There's a new patch comming, which has a thorough overhaul of the config module and will cause breaking changes.
Please use tag to pin the version if you don't want to modify your current configuration.
To get ride of this warning, also pin your version to v0.13.2]],
"warning",
{
title = "My scratch.nvim",
timeout = 8000,
urgency = "low",
}
)

0 comments on commit 122be70

Please sign in to comment.