mirror of
https://github.com/neovim/neovim.git
synced 2025-12-04 21:52:41 +00:00
refactor(lsp): use autocmd api (#19407)
* refactor(lsp): use autocmd api * refactor(lsp): inline BufWritePost and VimLeavePre callbacks
This commit is contained in:
@@ -61,7 +61,7 @@ local function progress_handler(_, result, ctx, _)
|
||||
client.messages.progress[token].done = true
|
||||
end
|
||||
|
||||
api.nvim_command('doautocmd <nomodeline> User LspProgressUpdate')
|
||||
api.nvim_exec_autocmds('User', { pattern = 'LspProgressUpdate', modeline = false })
|
||||
end
|
||||
|
||||
--see: https://microsoft.github.io/language-server-protocol/specifications/specification-current/#progress
|
||||
|
||||
Reference in New Issue
Block a user