mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 15:45: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
|
#### use-package
|
||||||
|
|
||||||
```elisp
|
```elisp
|
||||||
(use-package lsp-mode
|
(use-package lsp-mode :commands lsp)
|
||||||
:commands lsp
|
(use-package lsp-ui :commands lsp-ui-mode)
|
||||||
:config (require 'lsp-clients))
|
(use-package company-lsp :commands company-lsp)
|
||||||
|
|
||||||
(use-package company-lsp
|
|
||||||
:commands company-lsp)
|
|
||||||
|
|
||||||
(use-package ccls
|
(use-package ccls
|
||||||
:hook ((c-mode c++-mode objc-mode) .
|
: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.
|
The only required configuration is `ccls-executable`. Others have good defaults.
|
||||||
|
Loading…
Reference in New Issue
Block a user