Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings
nvim-java

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setup nvim-java with Neovim 0.11vim.lsp.enable()#426

Unanswered
Marfien asked this question inQ&A
Discussion options

Hello there,

I am struggling with setting up nvim-java withoutrequire("lspconfig").jdtls.setup({}) as it is deprecated. Has anyone tried it before?

Thanks for your help :)

You must be logged in to vote

Replies: 2 comments 3 replies

Comment options

require("lspconfig").jdtls.setup({}) as it is deprecated.

Who told you that?

You must be logged in to vote
3 replies
@Marfien
Comment options

From theREADME.md ofneovim/nvim-lspconfig:

The configs inlua/lspconfig/ are deprecated and will be removed.
Upgrade to Nvim 0.11+ and usevim.lsp.enable('…') (notrequire'lspconfig'.….setup{}) to enable a config.

@logrusx
Comment options

Nothing is deprecated yet. Those configs are not used anymore, the setup function is migrated to the new api.

@logrusx
Comment options

Thanks for pointing that out though. I might look into migrating to the new LSP API. It seems inevitable.

But it's still not the end of the world, so don't worry about that and use nvim-java the way you used to.

Comment options

So I had a general idea how things should be done and it can almost be done outside of nvim-java but unfortunately this still needs some modifications inside.

And if I'll modify nvim-java either way, it makes sense for me to try to do it completely inside nvim-java so the user does not need to be bothered with that.

Unfortunately the time I could afford to spend on that at this point is over so use nvim-java the way you used it until now and ignore the warning. If it's too annoying to you, I guess you could pin nvim-lspconfig to an earlier version.

I'm handling it in#427

You must be logged in to vote
0 replies
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Category
Q&A
Labels
None yet
2 participants
@Marfien@logrusx

[8]ページ先頭

©2009-2025 Movatter.jp