-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathjava.lua
More file actions
42 lines (34 loc) · 1.36 KB
/
java.lua
File metadata and controls
42 lines (34 loc) · 1.36 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
local deps = require('java.utils.dependencies')
local mason = require('java.utils.mason')
local lspconfig = require('java.utils.lspconfig')
local test = require('java.api.test')
local dap = require('java.api.dap')
-- local ts = require('java.treesitter')
local M = {}
function M.setup()
deps.check()
mason.install_dependencies()
lspconfig.wrap_lspconfig_setup()
lspconfig.register_class_file_decomplier()
dap.setup_dap_on_lsp_attach()
end
----------------------------------------------------------------------
-- DAP APIs --
----------------------------------------------------------------------
M.dap = {}
M.dap.config_dap = dap.config_dap
----------------------------------------------------------------------
-- Test APIs --
----------------------------------------------------------------------
M.test = {}
M.test.run_current_test_class = test.run_current_test_class
M.test.debug_current_test_class = test.debug_current_test_class
----------------------------------------------------------------------
-- Manipulate --
----------------------------------------------------------------------
M.manipulate = {}
-- M.manipulate.organize_imports = {}
function M.__run()
test.debug_current_method()
end
return M