-
Notifications
You must be signed in to change notification settings - Fork 306
Servers XML
mikoto2000 edited this page Apr 2, 2019
·
1 revision
- Java 1.8 or later
mkdir ~/lsp
curl -L https://github.com/angelozerr/lsp4xml/releases/download/0.3.0/org.eclipse.lsp4xml-0.3.0-uber.jar -o ~/lsp/org.eclipse.lsp4xml-0.3.0-uber.jar
if executable('java') && filereadable(expand('~/lsp/org.eclipse.lsp4xml-0.3.0-uber.jar'))
au User lsp_setup call lsp#register_server({
\ 'name': 'lsp4xml',
\ 'cmd': {server_info->[
\ 'java',
\ '-noverify',
\ '-Xmx1G',
\ '-XX:+UseStringDeduplication',
\ '-Dfile.encoding=UTF-8',
\ '-jar',
\ expand('~/lsp/org.eclipse.lsp4xml-0.3.0-uber.jar')
\ ]},
\ 'whitelist': ['xml']
\ })
endif