Koihik / vscode-lua-format

Reformats your Lua source code
Apache License 2.0
56 stars 13 forks source link

Use activeEditor.options.tabSize for indent_width #34

Open docwhat opened 3 years ago

docwhat commented 3 years ago

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.