Replies: 1 comment
-
I don't think lazy loading jdtls-nvim plugin itself with lazy.nvim by ft ={ "java", } is best course of action. it didn't work well for me in past either. Though i can't elaborate in details. Using autocmd or neovim's filtetype file for start_attach worked for me. Jdtls-nvim is somewhat different from most of other ls' and plugins in this regard. Also the following doesn't seem like a good idea :
AFAIK you actually have to explicitly tell nvim-lspconfig not to auto configure jdtls second time in some cases. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I didn't want to create an issue yet since I'm not sure this is a bug or a misconfiguration.
This is my config for
lazy.nvim
:If I jump to definition (
vim.lsp.buf.definition
) tojava.util.List
, after a couple of seconds of delay, I get the following error:However, calling
start_or_attach
explicitly in aFiletype
auto-command works just fine:First I thought this was some sort of race-condition with
nvim-lspconfig
, so I addednvim-lspconfig
as a depencency ofnvim-jdls
but it still didn't work.Note: I'm setting my LSP mappings inside an
LspAttach
auto-command within theconfig
callback ofnvim-lspconfig
.Am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions