Skip to content

Commit 5c37c95

Browse files
fix: correctly handle user config (#9)
1 parent a716733 commit 5c37c95

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lua/java-deps/config.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,10 @@ local M = {
2323
}
2424
M.setup = function(config)
2525
if config then
26-
M = vim.tbl_extend("force", M, config)
26+
local new_config = vim.tbl_deep_extend("force", M, config)
27+
for key, value in pairs(new_config) do
28+
M[key] = value
29+
end
2730
end
2831
end
2932

0 commit comments

Comments
 (0)