Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to config maven settings.xml path with jdt ls? #786

Open
yuyalun-allen opened this issue Dec 10, 2024 · 0 comments
Open

How to config maven settings.xml path with jdt ls? #786

yuyalun-allen opened this issue Dec 10, 2024 · 0 comments

Comments

@yuyalun-allen
Copy link

Hello developer! Thanks for developing this amazing project so that we can configure vim lsp easily.

I'm new to vim script and want to change default settings in jdt ls but don't know how to. I saw the config code like this:

augroup vim_lsp_settings_eclipse_jdt_ls
  au!
  LspRegisterServer {
      \ 'name': 'eclipse-jdt-ls',
      \ 'cmd': {server_info->lsp_settings#get('eclipse-jdt-ls', 'cmd', [lsp_settings#exec_path('eclipse-jdt-ls')]+lsp_settings#get('eclipse-jdt-ls', 'args', []))},
      \ 'root_uri':{server_info->lsp_settings#get('eclipse-jdt-ls', 'root_uri', lsp_settings#root_uri('eclipse-jdt-ls'))},
      \ 'initialization_options': lsp_settings#get('eclipse-jdt-ls', 'initialization_options', v:null),
      \ 'allowlist': lsp_settings#get('eclipse-jdt-ls', 'allowlist', ['java']),
      \ 'blocklist': lsp_settings#get('eclipse-jdt-ls', 'blocklist', []),
      \ 'config': lsp_settings#get('eclipse-jdt-ls', 'config', lsp_settings#server_config('eclipse-jdt-ls')),
      \ 'workspace_config': lsp_settings#get('eclipse-jdt-ls', 'workspace_config', {}),
      \ 'semantic_highlight': lsp_settings#get('eclipse-jdt-ls', 'semantic_highlight', {}),
      \ }
  autocmd User lsp_setup call s:register_command()
augroup END

how to change the vim script so that I could specify jdt ls to use my settings.xml (e.g. ~/.config/maven/settings.xml) for maven?

Thanks for your help!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant