LSP: eliminate lsp.print_debug_info…()

Reduce API surface.  We should not add functions unless they are really
needed.  Users should be nudged to use vim.inspect() directly.
This commit is contained in:
Justin M. Keyes
2019-12-31 08:03:06 -08:00
parent 8b84119650
commit ac6ebfcc1d
2 changed files with 0 additions and 19 deletions

View File

@@ -971,19 +971,6 @@ function lsp.buf_get_clients(bufnr)
return result
end
--- Prints debug info about the current buffer clients.
---
--- Result of this function cannot be relied upon and may change.
function lsp.buf_print_debug_info(bufnr)
print(vim.inspect(lsp.buf_get_clients(bufnr)))
end
-- Print some debug information about all LSP related things.
-- The output of this function should not be relied upon and may change.
function lsp.print_debug_info()
print(vim.inspect({ clients = active_clients }))
end
-- Log level dictionary with reverse lookup as well.
--
-- Can be used to lookup the number from the name or the