File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -48,6 +48,7 @@ return {
4848 ' nvim-java/lua-async-await' ,
4949 ' nvim-java/nvim-java-core' ,
5050 ' nvim-java/nvim-java-test' ,
51+ ' nvim-java/nvim-java-dap' ,
5152 ' MunifTanjim/nui.nvim' ,
5253 ' neovim/nvim-lspconfig' ,
5354 ' mfussenegger/nvim-dap' ,
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ local mason_ui = require('mason.ui')
33local mason_util = require (' java.utils.mason' )
44local notify = require (' java-core.utils.notify' )
55local async = require (' java-core.utils.async' )
6+ local lazy = require (' java.ui.lazy' )
67local sync = async .sync
78
89local M = {}
2930
3031function M .refresh_and_install (packages )
3132 vim .schedule (function ()
33+ -- lazy covers mason
34+ -- https://github.com/nvim-java/nvim-java/issues/51
35+ lazy .close_lazy_if_opened ()
36+
3237 mason_ui .open ()
3338 notify .warn (' Please close and re-open after dependecies are installed' )
3439 end )
Original file line number Diff line number Diff line change 1+ local M = {}
2+
3+ function M .close_lazy_if_opened ()
4+ local ok , view = pcall (require , ' lazy.view' )
5+
6+ if not ok then
7+ return
8+ end
9+
10+ view .view :hide ()
11+ end
12+
13+ return M
You can’t perform that action at this time.
0 commit comments