feat(lspconfig): add rounded borders to :LspInfo window (#4208)

* feat(plugin): add rounded borders to :LspInfo window

* feat(lspconfig): add rounded borders to :LspInfo window

Co-authored-by: CPea <cpea2506@gmail.com>

* chore: format

---------

Co-authored-by: CPea <cpea2506@gmail.com>
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
This commit is contained in:
Sadik Saifi 2023-06-03 14:19:49 +05:30 committed by GitHub
parent 5c7d712497
commit 804e08cb46
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

@ -120,6 +120,9 @@ function M.setup()
set_handler_opts_if_not_set("textDocument/hover", vim.lsp.handlers.hover, { border = "rounded" }) 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" }) set_handler_opts_if_not_set("textDocument/signatureHelp", vim.lsp.handlers.signature_help, { border = "rounded" })
-- Enable rounded borders in :LspInfo window.
require("lspconfig.ui.windows").default_options.border = "rounded"
end end
return M return M