zig-mode icon indicating copy to clipboard operation
zig-mode copied to clipboard

lsp-mode is turned off for buffer on buffer save

Open GarbageHamburger opened this issue 5 years ago • 1 comments

When I have zig-mode enabled for a buffer and save that buffer while lsp-mode is enabled, LSP seems to turn off (the icon disappears from the modeline, and completions no longer work).

Distribution: Debian GNU/Linux bullseye/testing Emacs version: 27.1 Doom Emacs version: hlissner/doom-emacs@f7293fb6 zig-mode version: 20201022.955

GarbageHamburger avatar Dec 08 '20 19:12 GarbageHamburger

I think this is due to the fact that zig-mode runs revert-buffer on every save (due to the formatting code). Leaving our manual reformatting code behind and moving towards https://github.com/ziglang/zig-mode/issues/39 could solve this problem.

joachimschmidt557 avatar Dec 08 '20 19:12 joachimschmidt557