mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Satisfy lualint.
This commit is contained in:
parent
93beae4f31
commit
4c7ef3754a
@ -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.
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user