mirror of
https://github.com/neovim/neovim.git
synced 2025-09-06 03:18:16 +00:00
Merge #35505 from ofseed/lsp-fix-autocomplete
This commit is contained in:
@@ -42,7 +42,7 @@ Capability.all[Completor.name] = Completor
|
|||||||
function Completor:new(bufnr)
|
function Completor:new(bufnr)
|
||||||
self = Capability.new(self, bufnr)
|
self = Capability.new(self, bufnr)
|
||||||
self.client_state = {}
|
self.client_state = {}
|
||||||
api.nvim_create_autocmd({ 'InsertEnter', 'CursorMovedI', 'CursorHoldI' }, {
|
api.nvim_create_autocmd({ 'InsertEnter', 'CursorMovedI', 'TextChangedP' }, {
|
||||||
group = self.augroup,
|
group = self.augroup,
|
||||||
callback = function()
|
callback = function()
|
||||||
self:automatic_request()
|
self:automatic_request()
|
||||||
@@ -373,7 +373,7 @@ function M.select(opts)
|
|||||||
end
|
end
|
||||||
|
|
||||||
local count = opts.count or vim.v.count1
|
local count = opts.count or vim.v.count1
|
||||||
local wrap = opts.wrap or true
|
local wrap = opts.wrap ~= false
|
||||||
|
|
||||||
local current = completor.current
|
local current = completor.current
|
||||||
if not current then
|
if not current then
|
||||||
|
Reference in New Issue
Block a user