AutoYADM commit: 2024-11-12 17:15:02

This commit is contained in:
Daniel Fichtinger 2024-11-12 17:15:02 -05:00
parent aa8ee1ee93
commit 1af639b501

View file

@ -12,6 +12,11 @@ M.isCursorInList = function()
end end
node = node:parent() node = node:parent()
end end
-- Fall back to line-based check for list item pattern if not directly on `list_item` node
local line = vim.api.nvim_get_current_line()
if line:match("^%s*[%-%*%+%d+%.]%s+") then
return true
end
return false return false
end end