nvim: clean up float border

This commit is contained in:
Daniel Lundin 2021-12-20 13:00:25 +01:00
parent a07bd72c54
commit 1adb9af132

View file

@ -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 <buffer><silent> <C-space> :lua vim.lsp.diagnostic.show_line_diagnostics({ border = border })<CR>]]
-- vim.cmd [[nnoremap <buffer><silent> ]g :lua vim.lsp.diagnostic.goto_next({ popup_opts = { border = border }})<CR>]]