mirror of
https://github.com/neovim/neovim.git
synced 2025-12-21 13:55:36 +00:00
Satisfy lualint.
This commit is contained in:
@@ -903,7 +903,7 @@ end
|
|||||||
-- Print some debug information about all LSP related things.
|
-- Print some debug information about all LSP related things.
|
||||||
-- The output of this function should not be relied upon and may change.
|
-- The output of this function should not be relied upon and may change.
|
||||||
function lsp.print_debug_info()
|
function lsp.print_debug_info()
|
||||||
print(vim.inspect({ clients = active_clients, filetype_configs = all_filetype_configs }))
|
print(vim.inspect({ clients = active_clients }))
|
||||||
end
|
end
|
||||||
|
|
||||||
-- Log level dictionary with reverse lookup as well.
|
-- Log level dictionary with reverse lookup as well.
|
||||||
|
|||||||
@@ -7,14 +7,6 @@ local log = require 'vim.lsp.log'
|
|||||||
|
|
||||||
local M = {}
|
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, ...)
|
local function ok_or_nil(status, ...)
|
||||||
if not status then return end
|
if not status then return end
|
||||||
return ...
|
return ...
|
||||||
@@ -198,7 +190,7 @@ local function signature_help_to_preview_contents(input)
|
|||||||
if not signature then
|
if not signature then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
vim.list_extend(contents, split_lines(signature.label))
|
vim.list_extend(contents, vim.split(signature.label, '\n', true))
|
||||||
if signature.documentation then
|
if signature.documentation then
|
||||||
util.convert_input_to_markdown_lines(signature.documentation, contents)
|
util.convert_input_to_markdown_lines(signature.documentation, contents)
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user