Skip to content

Commit effdbc5

Browse files
committed
Show completions for view too.
1 parent c04796e commit effdbc5

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

init.lua

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,8 @@ function M.complete_lua()
9595
if (not ok or type(result) ~= 'table') and symbol ~= '' then return end
9696
local cmpls = {}
9797
part = '^' .. part
98-
if not ok or symbol == 'buffer' then
99-
local sci = _SCINTILLA
100-
local global_envs = not ok and {_G} or
101-
(op == ':' and {sci.functions} or {sci.properties, sci.constants})
98+
if not ok or symbol == 'buffer' or symbol == 'view' then
99+
local global_envs = not ok and {_G} or {_SCINTILLA} -- undocumented
102100
for i = 1, #global_envs do
103101
for k in pairs(global_envs[i]) do
104102
if type(k) == 'string' and k:find(part) then cmpls[#cmpls + 1] = k end

0 commit comments

Comments
 (0)