Skip to content

Commit

Permalink
[Update] format code style by stylua
Browse files Browse the repository at this point in the history
  • Loading branch information
mistricky committed Feb 12, 2024
1 parent c0335cf commit 7646fc3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lua/plugin-name/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ local static = require("plugin-name.static")
local main = {}

function main.setup(config)
static.config = table_utils.merge(static.config, config)
static.config = table_utils.merge(static.config, config)
end

return main
2 changes: 1 addition & 1 deletion lua/plugin-name/static.lua
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
return {
config = {},
config = {},
}
14 changes: 7 additions & 7 deletions lua/plugin-name/utils/table.lua
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
local table_utils = {}

function table_utils.assign(t, props)
for k, v in pairs(props) do
t[k] = v
end
for k, v in pairs(props) do
t[k] = v
end
end

function table_utils.merge(t1, t2)
for k, v in pairs(t2) do
t1[k] = v
end
for k, v in pairs(t2) do
t1[k] = v
end

return t1
return t1
end

return table_utils

0 comments on commit 7646fc3

Please sign in to comment.