fix: properly warn on invalid spec
This commit is contained in:
parent
e48a8f9c0c
commit
13256a3acf
1 changed files with 4 additions and 1 deletions
|
|
@ -20,7 +20,10 @@ M.setup = function(user_config)
|
||||||
user_config.use == nil
|
user_config.use == nil
|
||||||
or not vim.tbl_contains({ 'fzf', 'telescope' }, user_config.use)
|
or not vim.tbl_contains({ 'fzf', 'telescope' }, user_config.use)
|
||||||
then
|
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
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue