zig-mode
zig-mode copied to clipboard
lsp-mode is turned off for buffer on buffer save
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
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.