Merge pull request #21 from barrettruth/fix/deprecation-warning
fix: add deprecation warning for setup()
This commit is contained in:
commit
c6bc4ed0db
1 changed files with 13 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue