Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions lua/cmp_go_pkgs/source.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,14 @@ local init_items = function(a)
arguments = arguments,
}, function(arg1, arg2, _)
if arg2 == nil and arg1 ~= nil then
vim.print("LSP error", arg1)
-- Debug log
-- vim.print("LSP error", arg1)
return
end

if arg1 == nil and arg2 == nil then
vim.print("both arg1 and arg2 are nil")
-- Debug log
-- vim.print("both arg1 and arg2 are nil")
return
end

Expand Down Expand Up @@ -70,7 +72,8 @@ end
source.complete = function(self, _, callback)
local ok = self._check_if_inside_imports()
if ok == false then
vim.print("not inside imports")
-- Debug log
-- vim.print("not inside imports")
callback()
return
end
Expand Down