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

Commit 3a65ea3

Browse files
committed
fix(core): DoomNuke plugins deleting wrong folder
1 parent 431540d commit 3a65ea3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lua/doom/core/functions.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ functions.nuke = function(target)
271271

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

lua/doom/utils/fs.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ fs.get_seperator = function()
2121
end
2222

2323
--- Joins a number of strings into a valid path
24-
---@vararg string[] String segments to convert to file system path
24+
---@vararg string String segments to convert to file system path
2525
fs.join_paths = function(...)
2626
return table.concat({ ... }, fs.get_seperator())
2727
end

0 commit comments

Comments
 (0)