File tree 2 files changed +6
-10
lines changed
2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change 16
16
17
17
--- @return nil
18
18
function M .move_in ()
19
- local node = nodes .get_current ()
20
- local target , row = targets .inn (node )
19
+ local target , row = targets .inn ()
21
20
if not target or not row then return end
22
21
vim .cmd (" normal! m'" )
23
22
operations .jump (target , row )
27
26
--- @return nil
28
27
function M .move_up ()
29
28
local node = nodes .get_current ()
30
- local target , row = targets .up (node )
29
+ local target , row = targets .up ()
31
30
if not target or not row then return end
32
31
33
32
-- No neighbor jumps in up
42
41
--- @return nil
43
42
function M .move_down ()
44
43
local node = nodes .get_current ()
45
- local target , row = targets .down (node )
44
+ local target , row = targets .down ()
46
45
if not target or not row then return end
47
46
48
47
-- down needs neighbor before and after jump
Original file line number Diff line number Diff line change @@ -24,9 +24,8 @@ function M.out(node)
24
24
return target , row
25
25
end
26
26
27
- --- @param node TSNode
28
27
--- @return TSNode | nil , integer | nil
29
- function M .inn (node )
28
+ function M .inn ()
30
29
local current_row , _ , current_col = current ()
31
30
32
31
local candidate , candidate_row =
@@ -35,9 +34,8 @@ function M.inn(node)
35
34
return candidate , candidate_row
36
35
end
37
36
38
- --- @param node TSNode
39
37
--- @return TSNode | nil , integer | nil
40
- function M .up (node )
38
+ function M .up ()
41
39
local current_row , _ , current_col = current ()
42
40
43
41
-- Get next target if we're on an empty line
@@ -56,9 +54,8 @@ function M.up(node)
56
54
end
57
55
end
58
56
59
- --- @param node TSNode
60
57
--- @return TSNode | nil , integer | nil
61
- function M .down (node )
58
+ function M .down ()
62
59
local current_row , _ , current_col = current ()
63
60
64
61
-- Get next target if we're on an empty line
You can’t perform that action at this time.
0 commit comments