We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 53ce343 + d539858 commit 02e76eeCopy full SHA for 02e76ee
script/provider/completion.lua
@@ -7,7 +7,7 @@ local ws = require 'workspace'
7
local isEnable = false
8
9
local function allWords()
10
- local str = '\t\n.:(\'"[,#*@|=-{/\\ +?'
+ local str = '\t\n.:(\'"[,#*@|=-{ +?'
11
local mark = {}
12
local list = {}
13
for c in str:gmatch '.' do
@@ -20,6 +20,11 @@ local function allWords()
20
list[#list+1] = postfix
21
mark[postfix] = true
22
end
23
+ local separator = config.get(scp.uri, 'Lua.completion.requireSeparator')
24
+ if not mark[separator] then
25
+ list[#list+1] = separator
26
+ mark[separator] = true
27
+ end
28
29
return list
30
0 commit comments