Skip to content

Commit

Permalink
perf(core.neorgcmd): unnecessary vim.tbl_deep_extend
Browse files Browse the repository at this point in the history
  • Loading branch information
vhyrro committed Jun 4, 2023
1 parent ea5fe1b commit 71d291f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lua/neorg/modules/core/neorgcmd/module.lua
Original file line number Diff line number Diff line change
Expand Up @@ -145,13 +145,13 @@ module.public = {
end

module.public.neorg_commands =
vim.tbl_deep_extend("force", module.public.neorg_commands, module_config.neorg_commands)
vim.tbl_extend("force", module.public.neorg_commands, module_config.neorg_commands)
end,

--- Recursively merges the provided table with the module.config.public.neorg_commands table.
---@param functions table #A table that follows the module.config.public.neorg_commands structure
add_commands_from_table = function(functions)
module.public.neorg_commands = vim.tbl_deep_extend("force", module.public.neorg_commands, functions)
module.public.neorg_commands = vim.tbl_extend("force", module.public.neorg_commands, functions)
end,

--- Takes a relative path (e.g "list.modules") and loads it from the commands/ directory
Expand Down

0 comments on commit 71d291f

Please sign in to comment.