jmacdonald / amp

A complete text editor for your terminal.
https://amp.rs
Other
3.67k stars 105 forks source link

.editorconfig is not being used #276

Closed pbgc closed 6 months ago

pbgc commented 6 months ago

Hi,

Looking at https://github.com/jmacdonald/amp/pull/116 I thought .editorconfig was being read and used. Tried it for the first time .. and it seems to me that it's begin ignored .. For example using this .editorconfig:


root = true

[*]
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
charset = utf-8

[*.json]
indent_style = space
indent_size = 2

[*.js]
indent_style = space
indent_size = 8

[*.ts]
indent_style = space
indent_size = 2

I don't get the 8 indentation (defined as 8 just to test :)). With the same file ... NeoVim use the 8.

Am I doing something wrong ?

EDIT: not only the ident_size. For example trim_trailing_whitespace = false also. It seems it's being ignored

pbgc commented 6 months ago

Ok .. It seems it was never merged but closed. Sorry for the confusion!