Merge pull request #21 from barrettruth/fix/deprecation-warning

fix: add deprecation warning for setup()
This commit is contained in:
Barrett Ruth 2026-02-03 21:52:48 -05:00 committed by GitHub
commit c6bc4ed0db
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -17,4 +17,17 @@ function M.load()
theme.apply() theme.apply()
end 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 return M