mirror of
https://github.com/MaskRay/ccls.git
synced 2025-02-19 15:10:47 +00:00
ALE
parent
bf7ecc9ab1
commit
4e24b3e236
4
ALE.md
4
ALE.md
@ -1,5 +1,7 @@
|
||||
Install [ALE](https://github.com/w0rp/ale) following its README.
|
||||
|
||||
ALE locates `.ccls-root` to set up the project root, see https://github.com/dense-analysis/ale/blob/master/autoload/ale/handlers/ccls.vim
|
||||
|
||||
ALE automatically loads all available linters and LSP clients for the filetype so, if `ccls` is correctly installed, it should work out-of-the-box. Moreover, ALE will automatically detect the root folder of your project.
|
||||
|
||||
To set init options for `ccls`, add to `~/.vimrc` or `~/.vim/vimrc` (example for `cpp` files, set other filetypes as needed):
|
||||
@ -27,4 +29,4 @@ nn <silent> <M-d> :ALEGoToDefinition<cr>
|
||||
nn <silent> <M-r> :ALEFindReferences<cr>
|
||||
nn <silent> <M-a> :ALESymbolSearch<cr>
|
||||
nn <silent> <M-h> :ALEHover<cr>
|
||||
```
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user