Skip to content

The JdtSetRuntime command isn't available. #432

Answered by lobophf
lobophf asked this question in Q&A
Discussion options

You must be logged in to vote

The following command is exactly what I was looking for and it solves the problem.

:lua require('jdtls').set_runtime('JavaSE-11') 

Note: To enable the :JdtUpdateConfig command I had to add the command below in my ftplugin/java.lua file.

vim.cmd "command! -buffer -nargs=? -complete=custom,v:lua.require'jdtls'._complete_set_runtime JdtSetRuntime lua require('jdtls').set_runtime(<f-args>)"

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lobophf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant