mirror of
https://github.com/neovim/neovim.git
synced 2025-09-07 11:58:17 +00:00
refactor(lsp): remove usage of deprecated function (#16539)
This commit is contained in:
@@ -489,7 +489,8 @@ local function text_document_did_open_handler(bufnr, client)
|
||||
-- Protect against a race where the buffer disappears
|
||||
-- between `did_open_handler` and the scheduled function firing.
|
||||
if vim.api.nvim_buf_is_valid(bufnr) then
|
||||
vim.lsp.diagnostic.redraw(bufnr, client.id)
|
||||
local namespace = vim.lsp.diagnostic.get_namespace(client.id)
|
||||
vim.diagnostic.show(namespace, bufnr)
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
Reference in New Issue
Block a user