mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-22 07:35:08 +00:00
Remove text not specific to vim-lsp
parent
8a73bfd928
commit
058203692d
15
vim-lsp.md
15
vim-lsp.md
@ -1,9 +1,3 @@
|
|||||||
There are several implementations of language server protocol (client side) in Vim.
|
|
||||||
|
|
||||||
First, make sure you have `ccls` built following [[Getting Started]] and added to `$PATH` (e.g. via soft link).
|
|
||||||
|
|
||||||
## vim-lsp
|
|
||||||
|
|
||||||
Install [vim-lsp](https://github.com/prabirshrestha/vim-lsp) following its README.
|
Install [vim-lsp](https://github.com/prabirshrestha/vim-lsp) following its README.
|
||||||
|
|
||||||
Register ccls by adding the following into your `~/.vimrc` or `~/.vim/vimrc`:
|
Register ccls by adding the following into your `~/.vimrc` or `~/.vim/vimrc`:
|
||||||
@ -34,11 +28,4 @@ nn <silent> <M-a> :LspWorkspaceSymbol<cr>
|
|||||||
nn <silent> <M-l> :LspDocumentSymbol<cr>
|
nn <silent> <M-l> :LspDocumentSymbol<cr>
|
||||||
```
|
```
|
||||||
|
|
||||||
Now it's good to go! Navigate to a C/C++/... project and test. Make sure you have [compilation database](https://github.com/MaskRay/ccls/wiki/compile_commands.json) in that project.
|
Now it's good to go! Navigate to a C/C++/... project and test. Make sure you have [compilation database](https://github.com/MaskRay/ccls/wiki/compile_commands.json) in that project.
|
||||||
|
|
||||||
|
|
||||||
## LanguageClient-neovim
|
|
||||||
|
|
||||||
Despite the name, [LanguageClient-neovim](https://github.com/autozimu/LanguageClient-neovim) does support vim besides neovim.
|
|
||||||
|
|
||||||
You are welcome to help provide vim spefici details here by editing the wiki. Meantime please refer to the [[Neovim]] page.
|
|
Loading…
Reference in New Issue
Block a user