mirror of
https://github.com/neovim/neovim.git
synced 2025-12-16 03:15:39 +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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user