fix(lsp): update completion items on TextChangedP

This commit is contained in:
Yi Ming
2025-08-27 20:08:15 +08:00
parent 6c3e9b5573
commit db1b7f7412

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()