Open SebasF1349 opened 1 month ago
This code assumes that lsp client.config.filetypes
exists, but that's evidently not the case with jdtls. Could you run :lua= vim.lsp.get_active_client()
, and paste here the output that corresponds to the client named jdtls
?
You are right, it doesn't set a filetype as it's executed on filetype event so no needed (filetypes = { 'java' },
on lazy). I have to go now, but can try to post the client data later. Right now it's too large for a message and it gets cut off.
Description
I've been using the plugin for months and it worked great for lua and js/ts, but now I have started working on Java and this error keeps poping the first time I open a Java project:
I'm using nvim-jdtls for the lsp stuff. I can of course disable the plugin for Java, as workspace diagnostics work by default, but I guess it would be better if it wasn't needed. Or it's expected by the user to select on which lsp to load the plugin?
Steps to reproduce
Expected behavior
Not having an error and just don't do anything, as it is not needed in this case.
Environment