[vim/vim] x_filetype to editorconfig supported properties? (Discussion #19314)

2 views
Skip to first unread message

Matěj Cepl

unread,
2:05 AM (18 hours ago) 2:05 AM
to vim/vim, Subscribed

I would like to add x_filetype (or perhaps vim_filetype) as a supported .editorconfig property for specification of filetype directory-/project-wide? E.g., something like filetype = jsonc for a project which does want to use JSONC for its configuration files instead of the strict ISO JSON?

So, I propose to add x_filetype as a new property to the supported properties of the Vim standard editorconfig support. The value of the property would be string equal to possible value of filetype option.

Just that I am talking about this here instead of at https://github.com/editorconfig/editorconfig-vim, because I would like the final definition of the option would be defined accross the Vim/Neovim/something-else? divide.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/19314@github.com>

Christian Brabandt

unread,
5:33 AM (14 hours ago) 5:33 AM
to vim/vim, Subscribed

I am not sure I fully understand, but you can already overrule the default filetype detection using :h new-filetype. I don't think this belongs into editorconfig and if it would, then it should be handled within the editorconfig spec


Reply to this email directly, view it on GitHub.

You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/repo-discussions/19314/comments/15671260@github.com>

Reply all
Reply to author
Forward
0 new messages