Skip to content

Commit

Permalink
fix(compat): remove usage of vim.iter
Browse files Browse the repository at this point in the history
fixes #54
  • Loading branch information
willothy committed Dec 28, 2023
1 parent 26403b9 commit 0409b73
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lua/hawtkeys/ts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,7 @@ local function find_maps_in_file(filePath)
if map.mode:match("^%s*{.*},?.*$") then
local modes = {}
for i, child in
vim.iter(node.node:child(1):iter_children())
:enumerate()
ipairs(node.node:child(1):iter_children())
do
if i % 2 == 0 then
local ty = vim.treesitter
Expand Down Expand Up @@ -292,8 +291,7 @@ local function find_maps_in_file(filePath)
if map.mode:match("^%s*{.*},?.*$") then
local modes = {}
for i, child in
vim.iter(node.node:child(1):iter_children())
:enumerate()
ipairs(node.node:child(1):iter_children())
do
if i % 2 == 0 then
local ty = vim.treesitter
Expand Down

0 comments on commit 0409b73

Please sign in to comment.