style: nvim completion border

This commit is contained in:
DACHXY 2025-01-26 22:58:54 +08:00
parent 7a2679afdd
commit e501718888
2 changed files with 56 additions and 6 deletions

View file

@ -0,0 +1,26 @@
return {
{
"saghen/blink.cmp",
---@module "blink.cmp"
---@type blink.cmp.Config
opts = {
snippets = {
expand = function(snippet, _)
return LazyVim.cmp.expand(snippet)
end,
},
completion = {
menu = {
border = "rounded",
},
documentation = {
auto_show = true,
auto_show_delay_ms = 200,
window = {
border = "rounded",
},
},
},
},
},
}

View file

@ -1,8 +1,32 @@
return { {
"folke/noice.nvim",
opts = {
presets = {
lsp_doc_border = true,
return {
{
"folke/noice.nvim",
opts = {
presets = {
lsp_doc_border = true,
},
lsp = {
override = {
["cmp.entry.get_documentation"] = true,
},
},
views = {
hover = {
border = {
style = "rounded",
},
},
confirm = {
border = {
style = "rounded",
},
},
popup = {
border = {
style = "rounded",
},
},
},
},
},
} }
}