feat: configure editor completion triggers from LSP info

This commit is contained in:
CJ van den Berg 2025-12-26 16:02:25 +01:00
parent fe2ea13024
commit 3dcdb64f83
Signed by: neurocyte
GPG key ID: 8EB1E1BB660E3FB9
4 changed files with 36 additions and 10 deletions

View file

@ -1994,3 +1994,9 @@ pub fn vcs_content_update(self: *Self, m: tp.message) void {
editor.vcs_content_update() catch {};
}
}
pub fn trigger_characters_update(self: *Self, m: tp.message) void {
self.lsp_info.add_from_event(m.buf) catch return;
const editor = self.get_active_editor() orelse return;
editor.update_completion_triggers();
}