Skip to content

Commit 54fe2a5

Browse files
authored
fix: path to defaults.lua in paste_default_config (#1155)
1 parent e9edc00 commit 54fe2a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/neo-tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ local M = {}
55

66
-- DEPRECATED: to be removed in a future release, use this instead:
77
-- ```
8-
-- require("neo-tree.command").execute({ action = "close" })
8+
-- require("neo-tree.command").execute({ action = "close" })
99
-- ```
1010
M.close_all = function()
1111
require("neo-tree.command").execute({ action = "close" })
@@ -47,7 +47,7 @@ M.get_prior_window = function(ignore_filetypes)
4747
end
4848

4949
M.paste_default_config = function()
50-
local base_path = debug.getinfo(utils.truthy).source:match("@(.*)/utils.lua$")
50+
local base_path = debug.getinfo(utils.truthy).source:match("@(.*)/utils/init.lua$")
5151
local config_path = base_path .. utils.path_separator .. "defaults.lua"
5252
local lines = vim.fn.readfile(config_path)
5353
if lines == nil then

0 commit comments

Comments
 (0)