今天配置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 iscompany-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)