This commit is contained in:
Ray Elliott 2022-10-05 20:29:01 +01:00
commit 3cec0c208b
3 changed files with 47 additions and 55 deletions

View file

@ -8,6 +8,7 @@ vim.diagnostic.config({
update_in_insert = false,
severity_sort = true,
float = {
border = "single",
source = "always" -- Or "if_many"
}
})
@ -24,6 +25,11 @@ local border = {
{"└", "FloatBorder"}, {"│", "FloatBorder"}
}
vim.lsp.handlers["textDocument/hover"] =
vim.lsp.with(vim.lsp.handlers.hover, {border = "single"})
vim.lsp.handlers["textDocument/signatureHelp"] =
vim.lsp.with(vim.lsp.handlers.signature_help, {border = "single"})
local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview
function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...)
opts = opts or {}