mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
lsp-mode
parent
7de39ba9b1
commit
0b227cd7a0
11
lsp-mode.md
11
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.
|
||||
|
Loading…
Reference in New Issue
Block a user