Skip to content

Commit

Permalink
chore: replace lazy.core.util with path.normalize
Browse files Browse the repository at this point in the history
  • Loading branch information
ibhagwan committed Jul 19, 2024
1 parent 4e97613 commit efa3215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lua/fzf-lua/actions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -566,8 +566,7 @@ local function helptags(s, opts)
local entry = path.entry_to_file(x, opts)
if entry and entry.path and package.loaded.lazy then
-- make sure the plugin is loaded. This won't do anything if already loaded
local LazyUtil = require("lazy.core.util")
local _, plugin = LazyUtil.norm(entry.path):match("(/([^/]+)/doc/)")
local _, plugin = path.normalize(entry.path):match("(/([^/]+)/doc/)")
if plugin then
require("lazy").load({ plugins = { plugin } })
end
Expand Down

0 comments on commit efa3215

Please sign in to comment.