Skip to content

Commit

Permalink
fix: trigger deprecation messages for false values s well
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 6, 2024
1 parent a6a93b7 commit a41e4d1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lua/various-textobjs/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ local defaultConfig = {
-- extra configuration for specific text objects
textobjs = {
indentation = {
-- `false`: only indentation changes delimit the text object
-- `true`: indentation changes as well as blank lines delimit the text object
-- `false`: only indentation decreases delimit the text object
-- `true`: indentation decreases as well as blank lines delimit the text object
blanksAreDelimiter = false,
},
subword = {
Expand Down Expand Up @@ -74,7 +74,7 @@ function M.setup(userConfig)
if M.config.notificationIcon then
warn("The `notificationIcon` option is deprecated. Use `notify.icon` instead.")
end
if M.config.notifyNotFound then
if M.config.notifyNotFound ~= nil then -- not nil, since `false` is a valid value
warn("The `notifyNotFound` option is deprecated. Use `notify.whenObjectNotFound` instead.")
end
-- DEPRECATION (2024-12-06)
Expand All @@ -88,7 +88,7 @@ function M.setup(userConfig)
end
---@diagnostic enable: undefined-field

if M.config.keymaps.useDefaults then
if M.config.keymaps.useDefaults ~= nil then
require("various-textobjs.default-keymaps").setup(M.config.keymaps.disabledDefaults)
end
end
Expand Down

0 comments on commit a41e4d1

Please sign in to comment.