Skip to content

Commit 6a97e94

Browse files
committed
Reapply weird JDTLS hack
1 parent b7b3dd9 commit 6a97e94

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

init.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ vim.opt.rtp:prepend(lazypath)
151151
-- :Lazy update
152152
--
153153
-- See HACK below...
154-
-- jdtls_already_ran = false
154+
jdtls_already_ran = false
155155
-- NOTE: Here is where you install your plugins.
156156
require('lazy').setup({
157157

@@ -717,10 +717,10 @@ require('lazy').setup({
717717
end,
718718
jdtls = function()
719719
-- HACK: Don't know why this gets called more than once
720-
-- if jdtls_already_ran then
721-
-- return
722-
-- end
723-
-- jdtls_already_ran = true
720+
if jdtls_already_ran then
721+
return
722+
end
723+
jdtls_already_ran = true
724724
require('java').setup {
725725
-- Your custom jdtls settings goes here
726726
-- Do not automatically install JDK 17

0 commit comments

Comments
 (0)