Skip to content

neovim: gq inside Python docstrings #28

@dwf

Description

@dwf

I'd prefer a fallback to the built-in behaviour when formatting text that falls fully inside a docstring.

A Treesitter expression for this seems to be

(body: block
  (expression_statement
    (string)))

i.e. a string appearing as an expression_statement node appearing directly inside a body's block.

Might want to only use the string_content inside.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions