mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-29 19:07:08 +00:00
Emacs: add ccls-navigate
parent
0931de3b3a
commit
6bdc58c060
15
Emacs.md
15
Emacs.md
@ -266,6 +266,21 @@ For the long story, refer to the corresponding [emacs-devel thread](https://list
|
|||||||
|
|
||||||
![$ccls/inheritanceHierarchy](https://ptpb.pw/JkyT.gif)
|
![$ccls/inheritanceHierarchy](https://ptpb.pw/JkyT.gif)
|
||||||
|
|
||||||
|
### `ccls-navigate`
|
||||||
|
|
||||||
|
Think of them as `sp-{down,previous,next,down}-sexp` for C/C++, roughly movement among declarations.
|
||||||
|
|
||||||
|
```elisp
|
||||||
|
(ccls-navigate "D") ;; roughly sp-down-sexp
|
||||||
|
(ccls-navigate "L")
|
||||||
|
(ccls-navigate "R")
|
||||||
|
(ccls-navigate "U")
|
||||||
|
```
|
||||||
|
|
||||||
|
https://www.reddit.com/r/emacs/comments/9dg13i/cclsnavigate_semantic_navigation_for_cc/
|
||||||
|
|
||||||
|
![](https://ptpb.pw/HXtM.gif)
|
||||||
|
|
||||||
### Misc
|
### Misc
|
||||||
|
|
||||||
For out-of-band changes to the files in the workspace that are not made in the LSP client (e.g. git pull), call
|
For out-of-band changes to the files in the workspace that are not made in the LSP client (e.g. git pull), call
|
||||||
|
Loading…
Reference in New Issue
Block a user