fix: properly warn on invalid spec

This commit is contained in:
Barrett Ruth 2024-06-17 17:59:37 -05:00
parent e48a8f9c0c
commit 13256a3acf

View file

@ -20,7 +20,10 @@ M.setup = function(user_config)
user_config.use == nil
or not vim.tbl_contains({ 'fzf', 'telescope' }, user_config.use)
then
vim.notify_once 'http-codes.nvim: must specify `use = {fzf,telescope}` in setup.'
vim.notify_once(
'http-codes.nvim: must specify `use = {fzf,telescope}` in setup.',
vim.log.levels.ERROR
)
return
end