editorconfig / editorconfig-vim

EditorConfig plugin for Vim
http://editorconfig.org
Other
3.13k stars 137 forks source link

Whitespace settings lost in neovim when changing which git commit is checked out #157

Open stevenroose opened 3 years ago

stevenroose commented 3 years ago

I've been having trouble with this plugin for about a year now. My default on most projects is to use tabs. Our work project uses spaces and has a .editorconfig to reflect this. Though very often when I have (Neo)vim open and meanwhile checkout different commits on the underlying directory, I start typing tabs again instead of spaces. As if this plugin suddenly breaks down or so.

cxw42 commented 3 years ago

Sorry you're having trouble! Please:

If the latest still doesn't work, please send us a full report: versions of neovim, OS, windowing system; steps to reproduce; a minimal example if at all possible.

Note that if you are using symlinks you may not get the results you expect (e.g., #123).

Edit Are you checking out older commits that don't have .editorconfig files, or that have different settings?

stevenroose commented 3 days ago

Lol, it's been 4 years and I'm here to report the same behavior has persisted ever since. I just filed an issue with LazyVim about it as well.

cxw42 commented 3 days ago

@stevenroose Could you post a git bundle (or git-fast-export) and instructions of a minimal repo that shows the issue?