fix: add deprecation warning for setup()

This commit is contained in:
Barrett Ruth 2026-02-03 21:46:43 -05:00
parent 6559261ad5
commit 2702caf352

View file

@ -17,4 +17,17 @@ function M.load()
theme.apply()
end
---@deprecated Use `vim.cmd('colorscheme midnight')` instead
function M.setup(opts)
vim.deprecate(
'require("midnight").setup()',
'vim.cmd("colorscheme midnight")',
'v0.1.0',
'midnight.nvim',
false
)
M.load()
end
return M