fix(snip): markup detection edge case

This commit is contained in:
arne314
2025-06-12 19:17:29 +02:00
parent 5094c1c05c
commit b73f580d1c

View File

@@ -23,7 +23,7 @@ M.in_math = function()
return utils.cursor_within_treesitter_query(ts_math_query, 0, cursor) return utils.cursor_within_treesitter_query(ts_math_query, 0, cursor)
and not utils.cursor_within_treesitter_query(ts_string_query, 0, cursor) and not utils.cursor_within_treesitter_query(ts_string_query, 0, cursor)
end end
M.in_markup = function() return utils.cursor_within_treesitter_query(ts_markup_query, 2) end M.in_markup = function() return utils.cursor_within_treesitter_query(ts_markup_query, 1) end
M.not_in_math = function() return not M.in_math() end M.not_in_math = function() return not M.in_math() end
M.not_in_markup = function() return not M.in_markup() end M.not_in_markup = function() return not M.in_markup() end
M.snippets_toggle = true M.snippets_toggle = true