mod(nvim): borderless floats

This commit is contained in:
Léana 江 2023-06-24 20:05:33 +02:00 committed by Léana 江
parent ea2457d8d2
commit c5ba8f466d
4 changed files with 28 additions and 21 deletions

View file

@ -47,14 +47,14 @@ vim.fn.sign_define("DiagnosticSignInfo", { text = '·', texthl = "DiagnosticSign
-- Border setup
local border = {
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ "", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
{ " ", "FloatBorder" },
}
local orig_util_open_floating_preview = vim.lsp.util.open_floating_preview
function vim.lsp.util.open_floating_preview(contents, syntax, opts, ...)