Satisfy lualint.

This commit is contained in:
Ashkan Kiani 2019-11-20 16:37:23 -08:00
parent 93beae4f31
commit 4c7ef3754a
2 changed files with 2 additions and 10 deletions

View File

@ -903,7 +903,7 @@ 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, filetype_configs = all_filetype_configs }))
print(vim.inspect({ clients = active_clients }))
end
-- Log level dictionary with reverse lookup as well.

View File

@ -7,14 +7,6 @@ local log = require 'vim.lsp.log'
local M = {}
local function resolve_bufnr(bufnr)
validate { bufnr = { bufnr, 'n', true } }
if bufnr == nil or bufnr == 0 then
return api.nvim_get_current_buf()
end
return bufnr
end
local function ok_or_nil(status, ...)
if not status then return end
return ...
@ -198,7 +190,7 @@ local function signature_help_to_preview_contents(input)
if not signature then
return
end
vim.list_extend(contents, split_lines(signature.label))
vim.list_extend(contents, vim.split(signature.label, '\n', true))
if signature.documentation then
util.convert_input_to_markdown_lines(signature.documentation, contents)
end