Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 LSP-metals(scala LSP 客户端)在 doom-emacs 中工作。
我的不便是当我执行操作时,我需要额外的操作来保存缓冲区以触发 LSP-server 进行重新编译并显示更新的错误列表。例如,导入需要的类 ,我尝试将钩子添加到lsp-execute-code-action但没有成功。
lsp-execute-code-action
(add-hook 'lsp--execute-code-action 'save-current-buffer)