From 1adb9af132ae5da595b29edb2e83acf14ebbd657 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 20 Dec 2021 13:00:25 +0100 Subject: [PATCH] nvim: clean up float border --- .config/nvim/lua/init.lua | 27 +++++++++++---------------- 1 file changed, 11 insertions(+), 16 deletions(-) diff --git a/.config/nvim/lua/init.lua b/.config/nvim/lua/init.lua index 2b16ce1..396399d 100644 --- a/.config/nvim/lua/init.lua +++ b/.config/nvim/lua/init.lua @@ -65,24 +65,19 @@ vim.g.netrw_dirhistmax = 0 require('plugins') - -local border = { '🭽', '▔' ,'🭾', '▕', '🭿', '▂', '🭼', '▏' } - -vim.lsp.handlers["textDocument/hover"] = -vim.lsp.with( -vim.lsp.handlers.hover, -{ - border = border +local border = { + {"🭽", "FloatBorder"}, + {"▔", "FloatBorder"}, + {"🭾", "FloatBorder"}, + {"▕", "FloatBorder"}, + {"🭿", "FloatBorder"}, + {"▁", "FloatBorder"}, + {"🭼", "FloatBorder"}, + {"▏", "FloatBorder"}, } -) -vim.lsp.handlers["textDocument/signatureHelp"] = -vim.lsp.with( -vim.lsp.handlers.signature_help, -{ - border = border -} -) +vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border }) +vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {border = border }) -- vim.cmd [[nnoremap :lua vim.lsp.diagnostic.show_line_diagnostics({ border = border })]] -- vim.cmd [[nnoremap ]g :lua vim.lsp.diagnostic.goto_next({ popup_opts = { border = border }})]]