Merge #35505 from ofseed/lsp-fix-autocomplete

This commit is contained in:
Justin M. Keyes
2025-08-27 13:33:17 -04:00
committed by GitHub

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', 'CursorHoldI' }, {
api.nvim_create_autocmd({ 'InsertEnter', 'CursorMovedI', 'TextChangedP' }, {
group = self.augroup,
callback = function()
self:automatic_request()
@@ -373,7 +373,7 @@ function M.select(opts)
end
local count = opts.count or vim.v.count1
local wrap = opts.wrap or true
local wrap = opts.wrap ~= false
local current = completor.current
if not current then