Closed
Description
This feels like an unfortunate situation:
I have a Go project with no modeline or editor config. I use default sw
which is 4
.
I use LSP go to definition to jump around and end up in something like /opt/homebrew/Cellar/go/1.18.3/libexec/src/fmt/print.go
. Then the sw
suddenly becomes 2
. :verbose Sleuth
tells me:
:setlocal expandtab " from /opt/homebrew/.editorconfig line 8
:setlocal shiftwidth=2 " from /opt/homebrew/.editorconfig line 9
:setlocal fixendofline " from /opt/homebrew/.editorconfig line 10
:setlocal endofline " from /opt/homebrew/.editorconfig line 10
:setlocal fileformat=unix " from /opt/homebrew/.editorconfig line 7
:setlocal fileencoding=utf-8 " from /opt/homebrew/.editorconfig line 6
:setlocal nobomb " from /opt/homebrew/.editorconfig line 6
To Sleuth, it's definitely working as expected. But not sure I ever want this as everything in my homebrew packages will respect the homebrew's root .editorconfig
.
This would normally be fine as I'll never edit these files. But since I have the indent line on, things look very strange. I always have to pause and think if something is wrong.
Maybe an option to disable the EditorConfig? Or exclude folder? The latter feels heavy...
Metadata
Metadata
Assignees
Labels
No labels