diff options
author | Brahmajit Das <listout@listout.xyz> | 2025-08-06 06:02:32 +0530 |
---|---|---|
committer | Brahmajit Das <listout@listout.xyz> | 2025-08-06 06:02:32 +0530 |
commit | fb78aa1c7b820a581b4ef8661be09cf8ec67ace3 (patch) | |
tree | a5e7dd6f1f3ee46c71a2f778604ab821d7eea5cc | |
parent | 19ec0836f6dd5088cd2928fb80c9474cfb15b6cb (diff) |
plugin/lsp.lua: dont set border here
using winborder instead
Signed-off-by: Brahmajit Das <listout@listout.xyz>
-rw-r--r-- | plugin/lsp.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/plugin/lsp.lua b/plugin/lsp.lua index 5dc93ef..b129cb3 100644 --- a/plugin/lsp.lua +++ b/plugin/lsp.lua @@ -64,22 +64,3 @@ vim.o.updatetime = 250 -- vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]] vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#4c4f69]] vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]] - -local border = { - { "╭", "FloatBorder" }, - { "─", "FloatBorder" }, - { "╮", "FloatBorder" }, - { "│", "FloatBorder" }, - { "╯", "FloatBorder" }, - { "─", "FloatBorder" }, - { "╰", "FloatBorder" }, - { "│", "FloatBorder" }, -} - --- To instead override globally -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 {} - opts.border = opts.border or border - return orig_util_open_floating_preview(contents, syntax, opts, ...) -end |