feat: rounded border for hover and signatureHelp (#4131)

Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
This commit is contained in:
Christian Chiarulli 2023-05-06 16:34:04 -04:00 committed by GitHub
parent 44c1a3d738
commit 55e7fdb9d1
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,6 +111,15 @@ function M.setup()
require("lvim.lsp.null-ls").setup() require("lvim.lsp.null-ls").setup()
autocmds.configure_format_on_save() autocmds.configure_format_on_save()
local function set_handler_opts_if_not_set(name, handler, opts)
if debug.getinfo(vim.lsp.handlers[name], "S").source:match(vim.env.VIMRUNTIME) then
vim.lsp.handlers[name] = vim.lsp.with(handler, opts)
end
end
set_handler_opts_if_not_set("textDocument/hover", vim.lsp.handlers.hover, { border = "rounded" })
set_handler_opts_if_not_set("textDocument/signatureHelp", vim.lsp.handlers.signature_help, { border = "rounded" })
end end
return M return M