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 /test/functional/plugin/lsp/diagnostic_spec.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 'test/functional/plugin/lsp/diagnostic_spec.lua')
-rw-r--r-- | test/functional/plugin/lsp/diagnostic_spec.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/plugin/lsp/diagnostic_spec.lua b/test/functional/plugin/lsp/diagnostic_spec.lua index 19b01edb29..f73ffc29b0 100644 --- a/test/functional/plugin/lsp/diagnostic_spec.lua +++ b/test/functional/plugin/lsp/diagnostic_spec.lua @@ -221,7 +221,7 @@ describe('vim.lsp.diagnostic', function() local diags = vim.diagnostic.get(diagnostic_bufnr) vim.lsp.stop_client(client_id) - vim.lsp._vim_exit_handler() + vim.api.nvim_exec_autocmds('VimLeavePre', { modeline = false }) return diags ]], line) eq(1, #result) |