nvim: clean up float border
This commit is contained in:
parent
a07bd72c54
commit
1adb9af132
1 changed files with 11 additions and 16 deletions
|
@ -65,24 +65,19 @@ vim.g.netrw_dirhistmax = 0
|
||||||
|
|
||||||
require('plugins')
|
require('plugins')
|
||||||
|
|
||||||
|
local border = {
|
||||||
local border = { '🭽', '▔' ,'🭾', '▕', '🭿', '▂', '🭼', '▏' }
|
{"🭽", "FloatBorder"},
|
||||||
|
{"▔", "FloatBorder"},
|
||||||
vim.lsp.handlers["textDocument/hover"] =
|
{"🭾", "FloatBorder"},
|
||||||
vim.lsp.with(
|
{"▕", "FloatBorder"},
|
||||||
vim.lsp.handlers.hover,
|
{"🭿", "FloatBorder"},
|
||||||
{
|
{"▁", "FloatBorder"},
|
||||||
border = border
|
{"🭼", "FloatBorder"},
|
||||||
|
{"▏", "FloatBorder"},
|
||||||
}
|
}
|
||||||
)
|
|
||||||
|
|
||||||
vim.lsp.handlers["textDocument/signatureHelp"] =
|
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, { border = border })
|
||||||
vim.lsp.with(
|
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, {border = border })
|
||||||
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> <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>]]
|
-- vim.cmd [[nnoremap <buffer><silent> ]g :lua vim.lsp.diagnostic.goto_next({ popup_opts = { border = border }})<CR>]]
|
||||||
|
|
Loading…
Reference in a new issue