Force Write is ignored if LSP is blocking writes. #13049
-
SummaryI cant force write Reproduction Steps
Workaround:
Helix log~/.cache/helix/helix.log
PlatformLinux Terminal Emulatorkitty 0.39.1 created by Kovid Goyal Installation Methodnixpkgs unstable Helix Versionhelix 25 (0efa820) |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
This is the intended behavior: force write will attempt to use LSP formatting if available and that can take a while if the language server is being slow. Forcing a write will create parent directories if they don't already exist and will overwrite files that were modified externally. For a situation like this you would instead want a flag for |
Beta Was this translation helpful? Give feedback.
-
[[language]]
name = "java"
language-servers =[ "jdtls" ]
formatter = { command = "google-java-format", args = ["-"] }
auto-format = true
|
Beta Was this translation helpful? Give feedback.
This is the intended behavior: force write will attempt to use LSP formatting if available and that can take a while if the language server is being slow. Forcing a write will create parent directories if they don't already exist and will overwrite files that were modified externally. For a situation like this you would instead want a flag for
:w
or:w!
that would skip formatting (this doesn't exist yet) or you can use:set auto-format false
.