From e66db54cef14a055b56d7af6fe6a63623a81d618 Mon Sep 17 00:00:00 2001 From: Barrett Ruth Date: Tue, 3 Feb 2026 20:48:06 -0500 Subject: [PATCH] fix: use vim.notify_once for deprecation warning --- lua/http-codes.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/http-codes.lua b/lua/http-codes.lua index 0a10c8f..2cb39d4 100644 --- a/lua/http-codes.lua +++ b/lua/http-codes.lua @@ -70,7 +70,10 @@ M.http_codes = M.pick ---@deprecated Use `vim.g.http_codes` instead function M.setup(user_config) - vim.deprecate('require("http-codes").setup()', 'vim.g.http_codes', '2.0.0', 'http-codes.nvim') + vim.notify_once( + 'http-codes.nvim: setup() is deprecated. Use vim.g.http_codes instead.', + vim.log.levels.WARN + ) if user_config then vim.g.http_codes = vim.tbl_deep_extend('force', vim.g.http_codes or {}, user_config)