feat(lsp): support set title in lsp relate floatwindow (#21110)

This commit is contained in:
Raphael
2022-11-21 18:06:14 +08:00
committed by GitHub
parent 126ef65e5b
commit 2bb244af31
3 changed files with 15 additions and 2 deletions

View File

@@ -1330,7 +1330,9 @@ hover({_}, {result}, {ctx}, {config}) *vim.lsp.handlers.hover()*
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(
vim.lsp.handlers.hover, {
-- Use a sharp border with `FloatBorder` highlights
border = "single"
border = "single",
-- add the title in hover float window
title = "hover"
}
)
<