diff options
author | ii14 <59243201+ii14@users.noreply.github.com> | 2022-07-17 19:13:33 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-17 19:13:33 +0200 |
commit | 13abe20b5f855779456c84b9583ed614223a69c8 (patch) | |
tree | 543d79e31d66b0dfad3195b758c897dd97570e84 /runtime/lua/vim/lsp/handlers.lua | |
parent | ff35d7a4b9a9bcbd664a9dae1471d55be014f0af (diff) | |
download | rneovim-13abe20b5f855779456c84b9583ed614223a69c8.tar.gz rneovim-13abe20b5f855779456c84b9583ed614223a69c8.tar.bz2 rneovim-13abe20b5f855779456c84b9583ed614223a69c8.zip |
refactor(lsp): use autocmd api (#19407)
* refactor(lsp): use autocmd api
* refactor(lsp): inline BufWritePost and VimLeavePre callbacks
Diffstat (limited to 'runtime/lua/vim/lsp/handlers.lua')
-rw-r--r-- | runtime/lua/vim/lsp/handlers.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/runtime/lua/vim/lsp/handlers.lua b/runtime/lua/vim/lsp/handlers.lua index 68e1f59aaf..3b869d8f5c 100644 --- a/runtime/lua/vim/lsp/handlers.lua +++ b/runtime/lua/vim/lsp/handlers.lua @@ -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 |