Skip to content

Commit b587545

Browse files
fix: remove double ts parsing
1 parent 323eae8 commit b587545

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

Diff for: lua/orgmode/files/elements/table/init.lua

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ end
3434
---@param cursor? table
3535
---@return OrgTable | nil
3636
function Table.from_current_node(cursor)
37-
ts_utils.parse_current_file()
3837
-- Get node from last column so we are sure we can find the table.
3938
-- If column is less than indentation of table, we will miss it.
4039
if not cursor then

Diff for: lua/orgmode/utils/treesitter/init.lua

-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ end
5454

5555
-- returns the nearest headline
5656
function M.closest_headline_node(cursor)
57-
M.parse_current_file()
5857
local node = M.get_node_at_cursor(cursor)
5958

6059
if not node then

0 commit comments

Comments
 (0)