-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathexample.init.lua
More file actions
83 lines (76 loc) · 1.97 KB
/
example.init.lua
File metadata and controls
83 lines (76 loc) · 1.97 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
local lspconfig = require("lspconfig")
local configs = require("lspconfig.configs")
-- Define the custom Lugo server
if not configs.lugo then
configs.lugo = {
default_config = {
cmd = {
"/path/to/your/lugo-linux-amd64" -- Update this path
},
filetypes = { "lua" },
root_dir = lspconfig.util.root_pattern(".git", ".luarc.json"),
settings = {}
}
}
end
-- Setup and pass initialization options directly
lspconfig.lugo.setup({
init_options = {
libraryPaths = {},
ignoreGlobs = {
"**/node_modules/**",
"**/.git/**"
},
knownGlobals = {
"vim"
},
bannedSymbols = {},
maxFileSizeMB = 4,
-- Parser
parserMaxErrors = 50,
-- Diagnostics
diagUndefinedGlobals = true,
diagImplicitGlobals = true,
diagUnusedLocal = true,
diagUnusedFunction = true,
diagUnusedParameter = true,
diagUnusedLoopVar = true,
diagShadowing = true,
diagUnreachableCode = true,
diagAmbiguousReturns = true,
diagDeprecated = true,
diagDuplicateField = true,
diagUnbalancedAssignment = true,
diagDuplicateLocal = true,
diagSelfAssignment = true,
diagEmptyBlock = true,
diagFormatString = true,
diagTypeCheck = false, -- Set to true if using strict LuaCATS annotations
diagRedundantParameter = true,
diagRedundantValue = true,
diagRedundantReturn = true,
diagLoopVarMutation = true,
diagIncorrectVararg = true,
diagShadowingLoopVar = true,
diagConstantCondition = true,
diagUnreachableElse = true,
diagUsedIgnoredVar = true,
-- Inlay Hints
inlayParamHints = true,
inlaySuppressMatch = true,
inlayImplicitSelf = true,
-- Editor Features
featureDocHighlight = true,
featureHoverEval = true,
featureCodeLens = true,
featureFormatting = true,
formatOpinionated = false,
suggestFunctionParams = true,
featureFormatAlerts = true,
-- FiveM Support
featureFiveM = false, -- Set to true if working on FiveM resources
diagFiveMUnaccountedFile = true,
diagFiveMUnknownExport = true,
diagFiveMUnknownResource = true
}
})