Skip to content

Use activeEditor.options.tabSize for indent_width #34

@docwhat

Description

@docwhat

Your plugin should use the current editor's tab size (activeEditor.options.tabSize) for indenting (indent_width) instead of always defaulting to "4".

Ideally, the override order should be:

  1. Local .lua-format file.
  2. Active editor's tab size.
  3. Global user's .lua-format.
  4. Plugin defaults.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions