Stable
parent
3bc48198a4
commit
4a08a5332e
|
|
@ -27,8 +27,8 @@ function SignatureHelp.new()
|
||||||
method = "#c099ff",
|
method = "#c099ff",
|
||||||
documentation = "#4fd6be",
|
documentation = "#4fd6be",
|
||||||
},
|
},
|
||||||
border = "rounded",
|
border = "solid",
|
||||||
winblend = 20,
|
winblend = 10,
|
||||||
}
|
}
|
||||||
}, SignatureHelp)
|
}, SignatureHelp)
|
||||||
end
|
end
|
||||||
|
|
@ -53,13 +53,13 @@ local function markdown_for_signature_list(signatures, config)
|
||||||
table.insert(lines, string.format("%s %s%s", config.icons.method, signature.label, suffix))
|
table.insert(lines, string.format("%s %s%s", config.icons.method, signature.label, suffix))
|
||||||
table.insert(lines, "```")
|
table.insert(lines, "```")
|
||||||
|
|
||||||
if signature.parameters and #signature.parameters > 0 then
|
-- if signature.parameters and #signature.parameters > 0 then
|
||||||
table.insert(lines, "")
|
-- table.insert(lines, "")
|
||||||
table.insert(lines, string.format("%s Parameters:", config.icons.parameter))
|
-- table.insert(lines, string.format("%s Parameters:", config.icons.parameter))
|
||||||
for _, param in ipairs(signature.parameters) do
|
-- for _, param in ipairs(signature.parameters) do
|
||||||
table.insert(lines, string.format(" • %s", param.label))
|
-- table.insert(lines, string.format(" • %s", param.label))
|
||||||
end
|
-- end
|
||||||
end
|
-- end
|
||||||
|
|
||||||
if signature.documentation then
|
if signature.documentation then
|
||||||
table.insert(lines, "")
|
table.insert(lines, "")
|
||||||
|
|
@ -320,7 +320,7 @@ function M.setup(opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
vim.cmd(string.format([[
|
vim.cmd(string.format([[
|
||||||
highlight default LspSignatureActiveParameter guifg=#c8d3f5 guibg=#4ec9b0 gui=bold
|
highlight default LspSignatureActiveParameter guifg=#a803f5 guibg=#1e1910 gui=bold
|
||||||
highlight default link FloatBorder Normal
|
highlight default link FloatBorder Normal
|
||||||
highlight default NormalFloat guibg=#1e1e1e guifg=#d4d4d4
|
highlight default NormalFloat guibg=#1e1e1e guifg=#d4d4d4
|
||||||
highlight default SignatureHelpMethod guifg=%s
|
highlight default SignatureHelpMethod guifg=%s
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue