Skip to content

Conversation

@KamiALK
Copy link

@KamiALK KamiALK commented Aug 26, 2024

While working with the jdtls configuration in Neovim, I noticed that in certain cases, the opts.jdtls field might not be defined, leading to an error when trying to merge configurations using vim.tbl_deep_extend. To avoid this issue, I added a check that passes an empty table {} if opts.jdtls is nil.
I modified the attach_jdtls function so that when constructing the language server configuration, opts.jdtls or {} is passed to the vim.tbl_deep_extend call. This ensures that a valid table is always passed, preventing unexpected errors and improving the robustness of the code.

@KamiALK KamiALK closed this by deleting the head repository Aug 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant