You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Though others may want auto-format on save when editing fugitive buffers (like staged file buffer), i.e.: fugitive:///home/user/nvim-test/.git//0/test.py,
I'd like to prevent auto-formatting in such cases as I have encountered some cases in which black works while isort doesn't on staged fugitive buffer, leading to discrepancies.
How can I achieve that via config.?
Thanks!
The text was updated successfully, but these errors were encountered:
After more digging, it seems that somehow black is somehow miraculously correctly invoked on fugitive buffer, while isort chokes on such a path (as quite expected).
In any case, here is a LazyVim configuration that prevents it:
Hi!
Though others may want auto-format on save when editing fugitive buffers (like staged file buffer), i.e.:
fugitive:///home/user/nvim-test/.git//0/test.py
,I'd like to prevent auto-formatting in such cases as I have encountered some cases in which black works while isort doesn't on staged fugitive buffer, leading to discrepancies.
How can I achieve that via config.?
Thanks!
The text was updated successfully, but these errors were encountered: