You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I read the documentation, I read the part about sources and custom sources, but I couldn't make it work. I have a file with words (like the english dictionary) and I want it to be a source to coq autocomplete. How do I do it?
Do I put this on a separete file or inside my init.lua?
COQsources = COQsources or {}
COQsources["<random uid>"] = {
name = "<name>", -- this is displayed to the client
fn = function (args, callback)
-- 0 based
local row, col = unpack(args.pos)
-- ...
-- callback(<LSP completion items>) at some point
local cancel = function ()
-- ...
end
return cancel -- optionally support cancellation
end
}
Thanks for the help
The text was updated successfully, but these errors were encountered:
Hello, I read the documentation, I read the part about sources and custom sources, but I couldn't make it work. I have a file with words (like the english dictionary) and I want it to be a source to coq autocomplete. How do I do it?
Do I put this on a separete file or inside my init.lua?
Thanks for the help
The text was updated successfully, but these errors were encountered: