mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 10:35:08 +02:00
feat: rounded border for hover and signatureHelp (#4131)
Co-authored-by: LostNeophyte <lostneophyte@tuta.io>
This commit is contained in:
parent
44c1a3d738
commit
55e7fdb9d1
1 changed files with 9 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue