summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcos <cos>2019-04-03 13:40:41 +0200
committercos <cos>2019-04-03 13:40:41 +0200
commit883fdc9c3ff5d4acb0c11c65ed6eb001ae0cee23 (patch)
tree55a89cf9193c0c977864a4bf97b4c1a231741cab
parent923e215ff15d51b4e78cc24a4a12dab3d4ec8fc1 (diff)
downloadjava-language-server-topic/classpath_example.zip
Add vim-lsc command exampletopic/classpath_example
-rw-r--r--README.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/README.md b/README.md
index 26467c3..da5f645 100644
--- a/README.md
+++ b/README.md
@@ -18,6 +18,10 @@ A Java [language server](https://github.com/Microsoft/vscode-languageserver-prot
- Add vim-lsc configuration:
```vimrc
let g:lsc_server_commands = {'java': '<path-to-java-language-server>/java-language-server/dist/mac/bin/launcher --quiet'}
+
+ " example of manual interaction with java-language-server
+ let classpath_params = {'settings': {'java':{'classPath':['<path-to-jar>'],'externalDependencies':[]}}}
+ command ClassPath call lsc#server#userCall("workspace/didChangeConfiguration", classpath_params, {a -> 0})
```
- See the [vim-lsc README](https://github.com/natebosch/vim-lsc/blob/master/README.md) for other configuration options.