From 5c298e7afc531289689303ee51c938d7f72f8dd9 Mon Sep 17 00:00:00 2001 From: Ibrahim Delice <59118341+idelice@users.noreply.github.com> Date: Sun, 19 May 2024 23:30:25 +0300 Subject: [PATCH] Update lua/lazyvim/plugins/extras/lang/java.lua Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com> --- lua/lazyvim/plugins/extras/lang/java.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/lazyvim/plugins/extras/lang/java.lua b/lua/lazyvim/plugins/extras/lang/java.lua index d273d745..81e160bb 100644 --- a/lua/lazyvim/plugins/extras/lang/java.lua +++ b/lua/lazyvim/plugins/extras/lang/java.lua @@ -193,8 +193,9 @@ return { local client = vim.lsp.get_client_by_id(args.data.client_id) if client and client.name == "jdtls" then -- INFO: without this the inlay hints start toggled off by default. - -- Maybe because `nvim-jdtls` attaches on a `FileType` event?? - -- Still with this the inlay hints are toggled on by default + -- Probably because `nvim-lspconfig` is not used to set up `nvim-jdtls` + -- and `LazyVim.toggle.inlay_hints` doesn't execute, so we have + -- to execute it again ourselves in this autocmd in `LspAttach` LazyVim.toggle.inlay_hints(args.buf, true) local wk = require("which-key") wk.register({