-
-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathconfig.lua
More file actions
97 lines (85 loc) · 2.45 KB
/
config.lua
File metadata and controls
97 lines (85 loc) · 2.45 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---@class java.Config
---@field root_markers string[]
---@field jdtls { version: string }
---@field lombok { version: string }
---@field java_test { enable: boolean, version: string }
---@field java_debug_adapter { enable: boolean, version: string }
---@field spring_boot_tools { enable: boolean, version: string }
---@field jdk { auto_install: boolean, version: string }
---@field notifications { dap: boolean }
---@field verification { invalid_order: boolean, duplicate_setup_calls: boolean, invalid_mason_registry: boolean }
---@field mason { registries: string[] }
local config = {
-- list of file that exists in root of the project
root_markers = {
'settings.gradle',
'settings.gradle.kts',
'pom.xml',
'build.gradle',
'mvnw',
'gradlew',
'build.gradle',
'build.gradle.kts',
'.git',
},
jdtls = {
version = 'v1.43.0',
},
lombok = {
version = 'nightly',
},
-- load java test plugins
java_test = {
enable = true,
version = '0.40.1',
},
-- load java debugger plugins
java_debug_adapter = {
enable = true,
version = '0.58.1',
},
spring_boot_tools = {
enable = true,
version = '1.55.1',
},
jdk = {
-- install jdk using mason.nvim
auto_install = true,
version = '17.0.2',
},
notifications = {
-- enable 'Configuring DAP' & 'DAP configured' messages on start up
dap = true,
},
-- We do multiple verifications to make sure things are in place to run this
-- plugin
verification = {
-- nvim-java checks for the order of execution of following
-- * require('java').setup()
-- * require('lspconfig').jdtls.setup()
-- IF they are not executed in the correct order, you will see a error
-- notification.
-- Set following to false to disable the notification if you know what you
-- are doing
invalid_order = true,
-- nvim-java checks if the require('java').setup() is called multiple
-- times.
-- IF there are multiple setup calls are executed, an error will be shown
-- Set following property value to false to disable the notification if
-- you know what you are doing
duplicate_setup_calls = true,
-- nvim-java checks if nvim-java/mason-registry is added correctly to
-- mason.nvim plugin.
-- IF it's not registered correctly, an error will be thrown and nvim-java
-- will stop setup
invalid_mason_registry = false,
},
mason = {
-- These mason registries will be prepended to the existing mason
-- configuration
registries = {
'github:nvim-java/mason-registry',
},
},
}
return config