Skip to content

Commit

Permalink
fix: add deprecation notices to relevant AstroCommunity entries
Browse files Browse the repository at this point in the history
  • Loading branch information
mehalter committed Jul 5, 2023
1 parent b7805a7 commit 052923f
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lua/astrocommunity/colorscheme/onigiri-nvim/init.lua
Original file line number Diff line number Diff line change
@@ -1 +1,6 @@
return { "kaiuri/onigiri.nvim" }
return {
"kaiuri/onigiri.nvim",
init = function()
require("astronvim.utils").notify("`onigiri.nvim` has been archived and is now read only!", vim.log.levels.WARN)
end,
}
6 changes: 6 additions & 0 deletions lua/astrocommunity/editing-support/nvim-ts-rainbow/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ return {
"nvim-treesitter/nvim-treesitter",
dependencies = {
"mrjones2014/nvim-ts-rainbow",
init = function()
require("astronvim.utils").notify(
"`nvim-ts-rainbow` is deprecated!\nPlease use `rainbow-delimiters`",
vim.log.levels.WARN
)
end,
config = function()
-- HACK: https://github.com/p00f/nvim-ts-rainbow/issues/112#issuecomment-1310835936
vim.api.nvim_create_autocmd({ "BufWritePost", "FocusGained" }, {
Expand Down
6 changes: 6 additions & 0 deletions lua/astrocommunity/editing-support/nvim-ts-rainbow2/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ return {
"nvim-treesitter/nvim-treesitter",
dependencies = {
"HiPhish/nvim-ts-rainbow2",
init = function()
require("astronvim.utils").notify(
"`nvim-ts-rainbow2` is deprecated!\nPlease use `rainbow-delimiters`",
vim.log.levels.WARN
)
end,
},
opts = { rainbow = { enable = true } },
}

0 comments on commit 052923f

Please sign in to comment.