Skip to content

Read config from .editorconfig for formatter. #1773

Open
@twoco

Description

@twoco

How are you using the lua-language-server?

Visual Studio Code Extension (sumneko.lua)

Which OS are you using?

Windows

What is the issue affecting?

Formatting

Expected Behaviour

Use config from .editorconfig.

Actual Behaviour

Does not respect .editorconfig.

Reproduction steps

In root: .editorconfig:

[*]
charset = utf-8
indent_style = space
indent_size = 2
insert_final_newline = true
trim_trailing_whitespace = true
max_line_length = 80
quote_type = single

https://editorconfig.org/

Additional Notes

No response

Log File

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions