Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. #### LSP based completers
  2.  
  3. The LSP servers sometimes support user configurations. To learn what
  4. configurations are available, consult the respective LSP server's documentation.
  5.  
  6. - `ls`: (optional) a dictionary where all LSP server specific settings reside.
  7.  
  8. Example of LSP configuration:
  9. ```python
  10. def Settings( **kwargs ):
  11. if kwargs[ 'language' ] == 'java':
  12. return { 'ls': { 'java.rename.enabled' : False } }
  13. ```
  14.  
  15. A special user option `language_server` can be used to plug in a LSP server ycmd
  16. wouldn't usually know about. The value is a dictionary whose keys are languages
  17. and values are lists of command lines to execute the server. Example:
  18.  
  19. ```json
  20. { "language_server": { "go": [ "/path/to/gopls", "-rpc.trace" ] } }
  21. ```
  22.  
  23. When plugging in a completer in this way, the `kwargs[ 'language' ]` will be set
  24. to the key of `language_server` user option.
  25.  
  26. LSP completers currecntly supported without `language_server`:
  27.  
  28. - Java
  29. - Rust
  30. - Go
  31. - C-family
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement