Skip to content
This repository was archived by the owner on Apr 16, 2024. It is now read-only.

Commit 431540d

Browse files
committed
fix(core): Fix :DoomNuke using missing util function.
1 parent 5470f78 commit 431540d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

lua/doom/core/functions.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -271,15 +271,13 @@ functions.nuke = function(target)
271271

272272
if target == "all" or target == "plugins" then
273273
-- Delete all plugins
274-
local util = require("lazy.util")
275-
local plugin_dir = util.join_paths(vim.fn.stdpath("data"), "site", "pack")
274+
local plugin_dir = fs.join_paths(vim.fn.stdpath("data"), "site", "pack")
276275
fs.rm_dir(plugin_dir)
277276
log.info("DoomNuke: Deleting lazy plugins. Doom-nvim will re-install on next launch.")
278277
end
279278

280279
if target == "all" or target == "mason" then
281-
local util = require("lazy.util")
282-
local mason_dir = util.join_paths(vim.fn.stdpath("data"), "mason")
280+
local mason_dir = fs.join_paths(vim.fn.stdpath("data"), "mason")
283281
fs.rm_dir(mason_dir)
284282
log.info("DoomNuke: Deleting mason packages")
285283
end

0 commit comments

Comments
 (0)