[LSP] 额,company-lsp还能用吗, lsp-mode的Changelog说drop掉了

今天配置clojure-lsp的时候发现LSP给我报错:

LSP :: `company-lsp' is not supported anymore.  Using `company-capf' as the `lsp-completion-provider'. [2 times]
LSP :: clojure-lsp:11384 initialized successfully
LSP :: You can configure this warning with the `lsp-enable-file-watchers' and `lsp-file-watch-threshold' variables
LSP :: `company-lsp' is not supported anymore.  Using `company-capf' as the `lsp-completion-provider'. [2 times]

而且company-mode不能进行补全了
其他语言的major mode下没有报错,搞什么啊?
我去查了下google,发现lsp-mode的Changelog的Release7.0.1上写

  • Dropped support for company-lsp , the suggested provider is company-capf .

这要怎么办啊 ps:这是我的相关配置

(use-package company
  :hook ((c++-mode . company-mode)
	 (python-mode . company-mode)
	 (clojure-mode . company-mode))
  :config
  (setq company-backends '(company-lsp company-files company-keywords)
	company-idle-delay 0.2)
  :commands company-mode)

(use-package lsp-mode
  :hook ((c++-mode . lsp)
	 (python-mode . lsp)
	 (clojure-mode . lsp))
  :config
  (setq lsp-enable-snippet nil)
  :commands lsp)
1 个赞

把 company-lsp 换成 company-capf,其他照旧

1 个赞

哇塞,可以了 :slightly_smiling_face: