Skip to content

Use activeEditor.options.tabSize for indent_width #34

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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