window borders
This commit is contained in:
parent
464f40024b
commit
93b98c882d
1 changed files with 24 additions and 0 deletions
|
@ -268,6 +268,30 @@ return {
|
||||||
documentation = cmp.config.window.bordered(),
|
documentation = cmp.config.window.bordered(),
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
-- Window borders for visibility
|
||||||
|
local _border = "single"
|
||||||
|
|
||||||
|
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.diagnostic.config {
|
||||||
|
float = { border = _border }
|
||||||
|
}
|
||||||
|
|
||||||
|
require('lspconfig.ui.windows').default_options = {
|
||||||
|
border = _border
|
||||||
|
}
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ -- Rust tools
|
{ -- Rust tools
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue