: r/emacs[2] 中,提到了 flymake 的一个新选项可以实现类似效果 (setq flymake-show-diagnostics-at-end-of-line t) 需要注意的是这个选项是在 Flymake 1.3.7 中新增的,会在 Emacs 30 中出现,之前版本的 Emacs 需要单独去 elpa[3] 下载。 Eglot 默认就使用 flymake 作为 diagnostic 展示前端,因此不需要额外配置。 对于 lsp-bridge 来说,可以借助 flymake-bridge[4] 插件实现: (require 'flymake-bridge) (add-hook 'lsp-bridge-mode-hook [4] flymake-bridge: https://github.com/liuyinz/flymake-bridge [5] 提升 Zig 编码体验技巧:zls 配置保存时自动检查代码: https
可参考: (defun my/eglot-hook () "Show flymake diagnostics first. https://github.com/joaotavora/eglot/discussions /898#discussioncomment-2609402" (setq eldoc-documentation-functions (cons #'flymake-eldoc-function (remove #'flymake-eldoc-function eldoc-documentation-functions)))) (add-hook 'eglot-managed-mode-hook
而且 eglot 的依赖很少,会尽量复用 Emacs 内置的模块,比如采用 flymake,而不是 flycheck,也有相关 issue 讨论如何用在 eglot 中使用 flycheck: •How
Vim 通过 ALE, Neomake 或 Syntastic 进行集成 Emacs 通过 Flycheck 或 Flymake 集成 Sublime 通过 SublimeLinter.
Flymake:一个传统的 Emacs 插件,用于实时语法检查。