mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
Update lua/lazyvim/plugins/extras/lang/java.lua
Co-authored-by: Iordanis Petkakis <12776461+dpetka2001@users.noreply.github.com>
This commit is contained in:
parent
2a619bac38
commit
5c298e7afc
1 changed files with 3 additions and 2 deletions
|
|
@ -193,8 +193,9 @@ return {
|
||||||
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
local client = vim.lsp.get_client_by_id(args.data.client_id)
|
||||||
if client and client.name == "jdtls" then
|
if client and client.name == "jdtls" then
|
||||||
-- INFO: without this the inlay hints start toggled off by default.
|
-- INFO: without this the inlay hints start toggled off by default.
|
||||||
-- Maybe because `nvim-jdtls` attaches on a `FileType` event??
|
-- Probably because `nvim-lspconfig` is not used to set up `nvim-jdtls`
|
||||||
-- Still with this the inlay hints are toggled on by default
|
-- 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)
|
LazyVim.toggle.inlay_hints(args.buf, true)
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.register({
|
wk.register({
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue