AI Assistant: Add trigger suggestion on user demand

Change-Id: I3f2432266e6fe52311ffa5ac2f2a76af72161a3d
Reviewed-by: Marcus Tillmanns <marcus.tillmanns@qt.io>
Reviewed-by: <mua@spyro-soft.com>
This commit is contained in:
Lukasz Papierkowski
2024-07-24 10:40:11 +02:00
committed by lie
parent 8b4cb5f9f5
commit b8dbcf3c9c
2 changed files with 125 additions and 32 deletions

View File

@@ -20,9 +20,9 @@ It will try to install it if it is not found.
hooks = {
editors = {
text = {
opened = function(document) require 'init'.Hooks.onDocumentOpened(document) end,
closed = function(document) require 'init'.Hooks.onDocumentClosed(document) end,
contentsChanged = function(document) require 'init'.Hooks.onDocumentContentsChanged(document) end,
contentsChanged = function(document, position, charsRemoved, charsAdded)
require 'init'.Hooks.onDocumentContentsChanged(document, position, charsRemoved, charsAdded)
end,
}
}
},