-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.toml
125 lines (111 loc) · 3.16 KB
/
config.toml
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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# Specifies the path to the V installation directory with `v` executable.
# If not set, the plugin will try to find it on its own.
# Set it if you get errors like "Cannot find V standard library!".
#custom_vroot = "~/v"
# Specifies the path where to store the cache.
# By default, it is stored in the system's cache directory.
# You can set it to `./` to store the cache in the project's directory, this is useful
# if you want to debug the analyzer.
# Basically, you don't need to set it.
#custom_cache_dir = "./"
# Specifies whenever to enable semantic tokens or not.
# - `full` — enables all semantic tokens. In this mode analyzer resolves all symbols
# in the file to provide the most accurate highlighting.
# - `syntax` — enables only syntax tokens, such tokens highlight structural elements
# such as field names or import names.
# The fastest option, which is always enabled when the file contains more than 1000 lines.
# - `none` — disables semantic tokens.
# By default, `full` for files with less than 1000 lines, `syntax` for files with more.
enable_semantic_tokens = "syntax"
# Specifies inlay hints to show.
[inlay_hints]
# Specifies whenever to enable inlay hints or not.
# By default, they are enabled.
enable = true
# Specifies whenever to show type hints for ranges or not.
# Example:
# ```
# 0 ≤ .. < 10
# ^ ^
# ```
# or:
# ```
# a[0 ≤ .. < 10]
# ^ ^
# ```
enable_range_hints = true
# Specifies whenever to show type hints for variables or not.
# Example:
# ```
# name : Foo := foo()
# ^^^^^
# ```
enable_type_hints = true
# Specifies whenever to show hints for implicit err variables or not.
# Example:
# ```
# foo() or { err ->
# ^^^^^^
# }
# ```
enable_implicit_err_hints = true
# Specifies whenever to show hints for function parameters in call or not.
# Example:
# ```
# fn foo(a int, b int) int {}
#
# foo(a: 1, b: 2)
# ^^ ^^
enable_parameter_name_hints = true
# Specifies whenever to show type hints for constants or not.
# Example:
# ```
# const foo : int = 1
# ^^^^^
# ```
enable_constant_type_hints = true
# Specifies whenever to show hints for enum field values or not.
# Example:
# ```
# enum Foo {
# bar = 0
# ^^^
# baz = 1
# ^^^
# }
# ```
enable_enum_field_value_hints = true
# Specifies code lenses to show.
[code_lens]
# Specifies whenever to enable code lenses or not.
# By default, they are enabled.
enable = true
# Specifies whenever to show code lenses for main function to run current directory or not.
# Example:
# ```
# ▶ Run
# fn main() {}
# ```
enable_run_lens = true
# Specifies whenever to show code lenses for interface inheritors or not.
# Example:
# ```
# 2 implementations
# interface Foo {}
# ```
enable_inheritors_lens = true
# Specifies whenever to show code lenses for structs implementing interfaces or not.
# Example:
# ```
# implemented 2 interfaces
# struct Boo {}
# ```
enable_super_interfaces_lens = true
# Specifies whenever to show code lenses for test functions to run test or whole file or not.
# Example:
# ```
# ▶ Run test | all file tests
# fn test_foo() {}
# ```
# Note: "all file tests" is shown only for the first test function in the file.
enable_run_tests_lens = true