File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -497,8 +497,7 @@ proto.on('textDocument/completion', function (params)
497497 return nil
498498 end
499499 local triggerCharacter = params .context and params .context .triggerCharacter
500- if config .config .completion .endAutocompletion
501- and params .context .triggerCharacter == ' \n ' then
500+ if config .config .completion .endAutocompletion and triggerCharacter == ' \n ' then
502501 require (" core.end-completion" )(uri , params .position )
503502 end
504503 if config .other .acceptSuggestionOnEnter ~= ' off' then
@@ -666,7 +665,7 @@ proto.on('textDocument/signatureHelp', function (params)
666665 }
667666 end
668667 local active = nil
669- if params .context .activeSignatureHelp and params .context .activeSignatureHelp .activeSignature then
668+ if params .context and params . context .activeSignatureHelp and params .context .activeSignatureHelp .activeSignature then
670669 active = params .context .activeSignatureHelp .activeSignature
671670 if active > # infos - 1 then
672671 active = # infos - 1
You can’t perform that action at this time.
0 commit comments