Skip to content

Commit 12bc09d

Browse files
committed
add semantic configs
1 parent 9cb0fa1 commit 12bc09d

File tree

3 files changed

+136
-14
lines changed

3 files changed

+136
-14
lines changed

changelog.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22

33
## 2.5.7
44
* `NEW` supports multi-workspace in server side, for developers of language clients, please [read here](https://github.com/sumneko/lua-language-server/wiki/Multi-workspace-supports) to learn more.
5-
* `NEW` setting: `Lua.hint.arrayIndex`
5+
* `NEW` setting:
6+
+ `Lua.hint.arrayIndex`
7+
+ `Lua.semantic.enable`
8+
+ `Lua.semantic.variable`
9+
+ `Lua.semantic.annotation`
10+
+ `Lua.semantic.keyword`
611
* `CHG` diagnostic: smoother
712
* `CHG` completion: can be triggered in `LuaDoc` and strings
13+
* `CHG` settings `Lua.color.mode` removed
814
* `FIX` [#879](https://github.com/sumneko/lua-language-server/issues/879)
915
* `FIX` [#884](https://github.com/sumneko/lua-language-server/issues/884)
1016
* `FIX` [#885](https://github.com/sumneko/lua-language-server/issues/885)

script/config/config.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ local Template = {
197197
['Lua.hover.previewFields'] = Type.Integer >> 20,
198198
['Lua.hover.enumsLimit'] = Type.Integer >> 5,
199199
['Lua.semantic.enable'] = Type.Boolean >> true,
200+
['Lua.semantic.variable'] = Type.Boolean >> true,
201+
['Lua.semantic.annotation'] = Type.Boolean >> true,
202+
['Lua.semantic.keyword'] = Type.Boolean >> false,
200203
['Lua.hint.enable'] = Type.Boolean >> false,
201204
['Lua.hint.paramType'] = Type.Boolean >> true,
202205
['Lua.hint.setType'] = Type.Boolean >> false,

0 commit comments

Comments
 (0)