Skip to content

Commit

Permalink
Fix indents
Browse files Browse the repository at this point in the history
  • Loading branch information
aimuzov authored and aaronik committed Dec 25, 2024
1 parent 70c094f commit 1bad89f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lua/treewalker/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -9,28 +9,28 @@ local Treewalker = {}
-- Default setup() options
---@type Opts
Treewalker.opts = {
highlight = true,
highlight_duration = 250,
highlight_group = "ColorColumn",
highlight = true,
highlight_duration = 250,
highlight_group = "ColorColumn",
}

---@param opts Opts | nil
function Treewalker.setup(opts)
if opts then
if opts then
Treewalker.opts = vim.tbl_deep_extend('force', Treewalker.opts, opts)
end
end
end

-- TODO This is clever kinda, but it breaks autocomplete of `require('treewalker')`

-- Assign move_{in,out,up,down}
for fn_name, fn in pairs(movement) do
Treewalker[fn_name] = fn
Treewalker[fn_name] = fn
end

-- Assign swap_{up,down}
for fn_name, fn in pairs(swap) do
Treewalker[fn_name] = fn
Treewalker[fn_name] = fn
end

return Treewalker

0 comments on commit 1bad89f

Please sign in to comment.