fix(lsp): update completion items on TextChangedP

This commit is contained in:
Yi Ming committed 2025-08-27 20:40:35 +08:00
1 parent 6c3e9b5573
commit db1b7f7412
1 file changed
+1 -1
+1 -1
View File
@@ -42,7 +42,7 @@ Capability.all[Completor.name] = Completor
function Completor:new(bufnr)
self = Capability.new(self, bufnr)
self.client_state = {}
api.nvim_create_autocmd({ 'InsertEnter', 'CursorMovedI' }, {
api.nvim_create_autocmd({ 'InsertEnter', 'CursorMovedI', 'TextChangedP' }, {
group = self.augroup,
callback = function()
self:automatic_request()