Re: [PATCH v4] Add .editorconfig file for basic formatting

From: Miguel Ojeda
Date: Sun Jun 02 2024 - 12:29:13 EST


On Sun, Jun 2, 2024 at 5:31 PM Mateusz Guzik <mjguzik@xxxxxxxxx> wrote:
>
> You can try yourself by editing fs/dcache.c or fs/bad_inode.c.
>
> It stems from this line:
> trim_trailing_whitespace = true
>
> The problem is dodged by setting it to false or adding this to
> ~/.config/nvim/init.lua:
> vim.g.editorconfig = false
>
> Is there a non-giant-hammer method to disable the thing? Maybe some lua
> magic to special-case that this is the kernel tree?

It may be possible to disable it for particular folder/patterns and
then try to get their maintainers to do a sweep eventually.

Cheers,
Miguel