diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 17:43:34 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-02-19 17:43:34 +0800 |
commit | 71244c2644abc5b4ecc9d3296f9bed99d4bee888 (patch) | |
tree | c2dc97ae119f014dc0e65c33213672b5b63c4858 /script/provider/completion.lua | |
parent | bed0c4911969b521fa3c15158df273c7e6106882 (diff) | |
download | lua-language-server-71244c2644abc5b4ecc9d3296f9bed99d4bee888.zip |
close #384 completion supports interface
Diffstat (limited to 'script/provider/completion.lua')
-rw-r--r-- | script/provider/completion.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/script/provider/completion.lua b/script/provider/completion.lua index 67d1771e..2dc92569 100644 --- a/script/provider/completion.lua +++ b/script/provider/completion.lua @@ -3,8 +3,8 @@ local proto = require 'proto' local isEnable = false local function allWords() - local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=- ]] - local list = {} + local str = [[abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:('"[,#*@|=-{ ]] + local list = {'\n', '\t'} for c in str:gmatch '.' do list[#list+1] = c end @@ -48,6 +48,7 @@ local function disable() end return { - enable = enable, - disable = disable, + enable = enable, + disable = disable, + allWords = allWords, } |