diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-08-20 16:26:02 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-08-20 16:26:06 +0800 |
commit | fd86458f11ee270884af730a4344ac000265e64e (patch) | |
tree | d6dfb49554c83c6bfdb3fe9df5163ec434b3100d | |
parent | 54e6511392c291e8d6e90d199b5117b2cc015855 (diff) | |
download | lua-language-server-fd86458f11ee270884af730a4344ac000265e64e.zip |
Dont register letters
-rw-r--r-- | script/provider/completion.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua index 227964b3..92546571 100644 --- a/script/provider/completion.lua +++ b/script/provider/completion.lua @@ -6,8 +6,8 @@ local config = require 'config' local isEnable = false local function allWords() - local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=-{ ]] - local list = {'\t', '\n'} + local str = '\t\n.:(\'"[,#*@|=-{ ' + local list = {} for c in str:gmatch '.' do list[#list+1] = c end |