Hacker News· scoops_·· 2 小时前AI 评分22
如何用 .dir-locals.el 和 python-lsp-server 配置 Emacs Eglot 的 Python 环境
Configuring Emacs Eglot for Python with .dir-locals.el and Python-lsp-server
AI 导读
在 Emacs 中用 Eglot 和 python-lsp-server(pylsp)搭建 Python 环境时,可通过仓库根目录的 .dir-locals.el 按项目配置插件,避免 pylsp 默认运行多个遗留 linter 导致重复诊断和缓冲区更新缓慢。
来源:Hacker News · jamescherti.com