怎么给doom emacs配置gopls

我配置了gopath,然后安装了相关依赖以及gopls,但是doom doctor警告说找不到 ,有人知道怎么配置吗?

 > :lang go
          ! Couldn't find gopls.
          ! Couldn't find gomodifytags. Manipulating struct tags will not work
          ! Couldn't find gotests. Generating tests will not work
          ! Couldn't find gore. REPL will not work
          ! Couldn't find guru. Refactoring commands (go-guru-*) won't work

gopls是一个二进制文件呀,你得安装它

安装了。现在是doom说找不到。环境变量都配置了。

(getenv "PATH")看下Emacs是否有阅读到你的环境变量。如果没有的话,可以考虑下exec-path-from-shell包来解决下。

你自己执行gopls能不能成功? 如果可以。

那么可以去bin/doom sync一下,环境变量应该被同步到$DOOM_DIR/.local/env下面,emacs里面应该能找到

更新环境变量之后记得要 doom sync 一下