-
Notifications
You must be signed in to change notification settings - Fork 1
/
LSP-julia.sublime-settings
80 lines (77 loc) · 3.84 KB
/
LSP-julia.sublime-settings
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
{
// Set the full path to the Julia executable (including the executable
// itself) or leave empty if Julia is in your PATH
"julia_executable_path": "",
// Additional environmental variables for the Julia REPL
"repl_env_variables": {
"JULIA_NUM_THREADS": "4"
},
// Language server configurations
"command": ["$julia_exe", "--startup-file=no", "--history-file=no", "--project=$server_path", "--eval", "using LanguageServer; runserver()"],
"selector": "source.julia",
"initializationOptions": {
"julialangTestItemIdentification": true
},
// Formatting options must be configured through a .JuliaFormatter.toml file,
// see https://domluna.github.io/JuliaFormatter.jl/stable/config/
"settings": {
// Sets the mode for completions.
// Valid values:
// - "exportedonly": Show completions for the current namespace.
// - "import": Show completions for the current namespace and unexported
// variables of `using`ed modules. Selection of an unexported
// variable will result in the automatic insertion of an explicit
// `using` statement.
// - "qualify": Show completions for the current namespace and unexported
// variables of `using`ed modules. Selection of an unexported
// variable will complete to a qualified variable name.
"julia.completionmode": "qualify",
// Run the linter on active files.
"julia.lint.run": true,
// This compares call signatures against all known methods for the called
// function. Calls with too many or too few arguments, or unknown keyword
// parameters are highlighted.
"julia.lint.call": true,
// Check for constant conditionals in if statements that result in
// branches never being reached.
"julia.lint.constif": true,
// Check variables used in type declarations are datatypes.
"julia.lint.datadecl": true,
// Specifies sub-directories in a package directory where only basic
// linting is. This drastically lowers the chance for false positives.
"julia.lint.disabledDirs": [
"docs",
"test"
],
// Check iterator syntax of loops. Will identify, for example, attempts
// to iterate over single values.
"julia.lint.iter": true,
// Check for deterministic lazy boolean operators.
"julia.lint.lazy": true,
// Highlight unknown symbols. The `symbols` option will not mark unknown
// fields.
// Valid values: "none", "symbols", "all"
"julia.lint.missingrefs": "none",
// Check submodule names do not shadow their parent's name.
"julia.lint.modname": true,
// Check for use of `==` rather than `===` when comparing against `nothing`.
"julia.lint.nothingcomp": true,
// Check for type piracy - the overloading of external functions with
// methods specified for external datatypes. 'External' here refers to
// imported code.
"julia.lint.pirates": true,
// Check parameters declared in `where` statements or datatype declarations
// are used.
"julia.lint.typeparam": true,
// Check that all declared arguments are used within the function body.
"julia.lint.useoffuncargs": true,
// Enable display of static inlay hints. Please note that inlay hints also
// need to be enabled in the LSP package settings ("show_inlay_hints": true).
"julia.inlayHints.static.enabled": true,
// Enable type hints for variable definitions.
"julia.inlayHints.static.variableTypes.enabled": true,
// Enable name hints for function parameters.
// Valid values: "none", "literals", "all"
"julia.inlayHints.static.parameterNames.enabled": "literals",
}
}