mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
nvim: move border to module
This commit is contained in:
parent
27ad456a37
commit
9c817814f2
2 changed files with 14 additions and 12 deletions
|
|
@ -93,21 +93,13 @@ vim.diagnostic.config {
|
|||
},
|
||||
}
|
||||
|
||||
local mylsp = require("lsp")
|
||||
|
||||
-- Helix style border
|
||||
local border = {
|
||||
{ " ", "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, ...)
|
||||
opts = opts or {}
|
||||
opts.border = border
|
||||
opts.border = mylsp.border
|
||||
return orig_util_open_floating_preview(contents, syntax, opts, ...)
|
||||
end
|
||||
|
||||
|
|
@ -117,7 +109,6 @@ vim.lsp.set_log_level("off")
|
|||
----------
|
||||
-- Init --
|
||||
----------
|
||||
local mylsp = require("lsp")
|
||||
|
||||
for name, config in pairs(servers) do
|
||||
require("lspconfig")[name].setup {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue