Skip to content

Commit

Permalink
chore: minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Aug 1, 2024
1 parent a0b0643 commit 9dae696
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions lua/rip-substitute/config.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
local M = {}
local notify = require("rip-substitute.utils").notify
--------------------------------------------------------------------------------

---@class ripSubstituteConfig
Expand Down Expand Up @@ -53,6 +52,7 @@ M.config = defaultConfig
---@param userConfig? ripSubstituteConfig
function M.setup(userConfig)
M.config = vim.tbl_deep_extend("force", M.config, userConfig or {})
local notify = require("rip-substitute.utils").notify

-- VALIDATE `rg` installations not built with `pcre2`, see #3
if M.config.regexOptions.pcre2 then
Expand All @@ -73,13 +73,6 @@ function M.setup(userConfig)
local msg = ('Border "none" is not supported, falling back to %q.'):format(fallback)
notify(msg, "warn")
end

-- DEPRECATION
if M.config.incrementalPreview.hlGroups then
local msg =
"`incrementalPreview.hlGroups.{name}` is deprecated, use `incrementalPreview.matchHlGroup` instead."
notify(msg, "warn")
end
end

--------------------------------------------------------------------------------
Expand Down
File renamed without changes.

0 comments on commit 9dae696

Please sign in to comment.