请问报如下错误是什么意思啊
LSP :: invalid config gopls.env type string
LSP :: unexpected config staticcheck
LSP :: Invalid type <nil> for []string option "experimentalDisabledAnalyses"
LSP :: /Users/wangjl/test.go:1:1: expected ';', found 'EOF' (and 2 more errors) [2 times]
好的,谢谢大佬,我还以为是我哪里配置有问题,我就说不应该啊,我都是按照github上最小配置,设置的。
对了,顺便问个问题,我昨天用您得 Centaur Emacs 一直卡在启动界面,meple.org这,好像在下载包
然后最后报Install Error说什么什么包不可用,一直不行,我就没用了。还有就是您那个dotfiles是干什么的?
关键是那大佬的配置我看不懂,不会改,小白一个,实在头痛
这是网络问题,无法下载包。在~/.emacs.d/custom.el
中设置为国内的源就可以了,注释有详细说明。
dotfiles是用来简化开发安装环境的,主要是zsh和其他一些常用工具。
大佬,又遇到一个问题。sh-mode
(add-hook 'sh-mode-hook #'lsp)
bash的language我已经装好了,这不会又是bug吧?
LSP :: Connected to [bash-ls:30102 status:starting].
LSP :: Request initialize failed with message: EPERM: operation not permitted, scandir '/Users/wangjl/Library/Cookies'
没事了,是权限不足,我在安全和隐私里把emacs加入完全访问目录就好了。
大佬,我没看到.emacs.d/目录下有custom.el啊?在哪个文件修改源啊?
Error (use-package): Failed to install gnu-elpa-keyring-update: Package ‘gnu-elpa-keyring-update-’ is unavailable
Error (use-package): Failed to install paradox: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install undo-tree: Package ‘undo-tree-’ is unavailable
Error (use-package): Failed to install goto-chg: Package ‘undo-tree-0.1.3’ is unavailable
Error (use-package): Failed to install rainbow-mode: Package ‘rainbow-mode-’ is unavailable
Error (use-package): Failed to install memory-usage: Package ‘memory-usage-’ is unavailable
Error (use-package): Failed to install lsp-mode: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install lsp-ui: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install company-lsp: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install dap-mode: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install lsp-treemacs: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install lsp-python-ms: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install ccls: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install lsp-java: Package ‘spinner-1.7.3’ is unavailable
Error (use-package): Failed to install csv-mode: Package ‘csv-mode-’ is unavailable
@seagle0128,已经用上了,谢谢,感觉非常不错,但有没有快捷键说明之类的啊,新手有点不会用
,还有就是我打开一个.go文件,不能补全呢,提示下面的这个。我该怎么解决呢。谢谢
LSP :: test.go not in project or it is blacklisted.
- 没有单独的快捷键说明,因为在不停的优化当中,没必要维护一份文档。Centaur Emacs 遵循原生 Emacs 的基本原则。辅助功能是
which-key
和hydra
。比如按下 C-x
等待一秒,就会出现如下快捷键提示:
<f6>
, C-<f6>
等绑定了 常用的hydra:
还有常用的:<f8>
是文件浏览侧边栏 treeamcs
,<f9>
是终端模拟器 vterm
。
其他的可以自己挖掘……
- 路径下新建.projectile 文件或者加入 vc(比如 git)控制。还不行就看看 lsp-mode 的手册。
1 个赞
("s-f" . swiper)
("C-S-s" . swiper-all)
请问 s-f
和 C-S-s
分别代表什么? 这是你的配置里的.