diff --git a/lsp-mode.md b/lsp-mode.md index 6417492..86aa04e 100644 --- a/lsp-mode.md +++ b/lsp-mode.md @@ -19,16 +19,13 @@ set `c-c++-backend` to `lsp-ccls` in the `+lang/c-c++` layer #### use-package ```elisp -(use-package lsp-mode - :commands lsp - :config (require 'lsp-clients)) - -(use-package company-lsp - :commands company-lsp) +(use-package lsp-mode :commands lsp) +(use-package lsp-ui :commands lsp-ui-mode) +(use-package company-lsp :commands company-lsp) (use-package ccls :hook ((c-mode c++-mode objc-mode) . - (lambda () (cl-pushnew #'company-lsp company-backends) (require 'ccls) (lsp)))) + (lambda () (require 'ccls) (lsp)))) ``` The only required configuration is `ccls-executable`. Others have good defaults.