Skip to content

[BUG] List indent and list utils functions get invoked inside fenced codeblocks #192

@ten3roberts

Description

@ten3roberts

Description

When inside a fenced codeblock, writing a list-like pattern ends up triggering list actions, such as indent, rather than falling through to the default behavior. In most cases, this is not noticeable, but causes issues for Rust function-chaining syntax, or other "list-like" elements, dashes, etc

Steps to Reproduce

  1. Type in codeblock, begin a line with .
  2. Press <Tab> before the line
  3. Line jumps but dot stays behind, where the plugin should not interfere

Expected Behavior

A Tab/Spaces is inserted

Screencast.From.2026-01-02.16-04-13.mp4

Actual Behavior

Markdown plus list indent is invoked on non-markdown

Screencast.From.2026-01-02.16-03-27.mp4

Environment

  • Neovim version: v0.12.0-dev-1898+g5a1a92cc7a
  • Plugin version: 05084a4
  • OS: Linux

Additional Context

Repro File
test.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions