AutoYADM commit: 2024-11-12 17:15:02
This commit is contained in:
parent
aa8ee1ee93
commit
1af639b501
1 changed files with 5 additions and 0 deletions
|
@ -12,6 +12,11 @@ M.isCursorInList = function()
|
|||
end
|
||||
node = node:parent()
|
||||
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
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue