1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-23 20:20:05 +08:00
SpaceVim/lua/spacevim/diagnostic.lua

19 lines
366 B
Lua

local M = {}
-- The following have been replaced by |vim.diagnostic.open_float()|.
--
-- *vim.lsp.diagnostic.show_line_diagnostics()*
-- *vim.lsp.diagnostic.show_position_diagnostics()*
function M.open_float()
if vim.diagnostic ~= nil then
vim.diagnostic.open_float()
else
vim.lsp.diagnostic.show_line_diagnostics()
end
end
return M