From b80a1843150ee7d37befe13c17a92a3c26b489ec Mon Sep 17 00:00:00 2001 From: Shu Kutsuzawa Date: Fri, 3 Mar 2023 17:56:55 +0900 Subject: [PATCH] add warning for disable opt --- lua/trim/init.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/trim/init.lua b/lua/trim/init.lua index 9d6efaf..bcd73c2 100644 --- a/lua/trim/init.lua +++ b/lua/trim/init.lua @@ -27,7 +27,8 @@ function M.setup(opts) opts = opts or {} -- compatability: disable -> ft_blocklist - if (opts.disable and not opts.ft_blocklist) then + if opts.disable and not opts.ft_blocklist then + vim.notify('`disable` is deprecated, use `ft_blocklist` instead', vim.log.levels.WARN, { title = 'trim.nvim' }) opts.ft_blocklist = opts.disable end