Skip to content

Commit

Permalink
add warning for disable opt
Browse files Browse the repository at this point in the history
  • Loading branch information
cappyzawa committed Mar 3, 2023
1 parent 9202bc3 commit b80a184
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/trim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit b80a184

Please sign in to comment.