Closed igorlfs closed 1 month ago
A workaround could be to edit the completionTriggerCharacters
of the session's capabilities
.
E.g.:
local dap = require("dap")
dap.listeners.after.event_initialized["compl-triggers"] = function(session)
local capabilities = session.capabilities
if capabilities then
capabilities.completionTriggerCharacters = {"a", "e", "i", "o", "u", "."}
end
end
Or you could setup your own completion trigger similar to :help compl-autocomplete
I might change my mind around this, but for now I have no plans to extend this and given that there are workarounds I'm closing this
Problem Statement
Hello! I'm trying to incorporate nvim-dap's built-in autocompletion into my workflow. The documentation states that
Using the debugpy adapter, it seems to fall back to trigger completion on
.
. But IMO, a more natural approach would be to use every character instead.Possible Solutions
An option to control the fallback characters for completion, which would allow using every character.
Considered Alternatives
There's a nvim-cmp source for dap, which I was trying to migrate from.