Skip to content

Commit

Permalink
fix: remove double ts parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Jan 30, 2025
1 parent 323eae8 commit b587545
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion lua/orgmode/files/elements/table/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ end
---@param cursor? table
---@return OrgTable | nil
function Table.from_current_node(cursor)
ts_utils.parse_current_file()
-- Get node from last column so we are sure we can find the table.
-- If column is less than indentation of table, we will miss it.
if not cursor then
Expand Down
1 change: 0 additions & 1 deletion lua/orgmode/utils/treesitter/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ end

-- returns the nearest headline
function M.closest_headline_node(cursor)
M.parse_current_file()
local node = M.get_node_at_cursor(cursor)

if not node then
Expand Down

0 comments on commit b587545

Please sign in to comment.