Skip to content

Commit

Permalink
Use only TextChangedI,its fine
Browse files Browse the repository at this point in the history
  • Loading branch information
deathbeam committed Feb 20, 2024
1 parent d9012e0 commit 1384972
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/autocomplete/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ function M.setup(config)
M.config = vim.tbl_deep_extend('force', M.config, config or {})
local group = vim.api.nvim_create_augroup('LspCompletion', {})

vim.api.nvim_create_autocmd({ 'TextChangedI', 'TextChangedP' }, {
vim.api.nvim_create_autocmd('TextChangedI', {
desc = 'Auto show LSP completion',
group = group,
callback = util.with_client(text_changed, methods.textDocument_completion),
Expand Down

0 comments on commit 1384972

Please sign in to comment.