summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbouzar Parvan <[email protected]>2022-04-14 23:17:06 +0430
committerGitHub <[email protected]>2022-04-14 23:17:06 +0430
commit332e974b53d8053a7102f669141cdc054d3f20d5 (patch)
tree980bd03b5ec266e09ff1d146fd2155c3ccecb9ed
parentb4d5f093a5607d3f14cbf90aebfb25036c3ee272 (diff)
feat(cmp): documentation is deprecated in favor of window.documentation (#2461)
-rw-r--r--lua/lvim/core/cmp.lua5
-rw-r--r--snapshots/default.json2
2 files changed, 4 insertions, 3 deletions
diff --git a/lua/lvim/core/cmp.lua b/lua/lvim/core/cmp.lua
index 621e2b6d..8fb18c5f 100644
--- a/lua/lvim/core/cmp.lua
+++ b/lua/lvim/core/cmp.lua
@@ -232,8 +232,9 @@ M.config = function()
require("luasnip").lsp_expand(args.body)
end,
},
- documentation = {
- border = { "╭", "─", "╮", "│", "╯", "─", "╰", "│" },
+ window = {
+ completion = cmp.config.window.bordered(),
+ documentation = cmp.config.window.bordered(),
},
sources = {
{ name = "nvim_lsp" },
diff --git a/snapshots/default.json b/snapshots/default.json
index 99584487..eb242de0 100644
--- a/snapshots/default.json
+++ b/snapshots/default.json
@@ -51,7 +51,7 @@
"commit": "6fb0479"
},
"nvim-cmp": {
- "commit": "3192a0c"
+ "commit": "dbc7229"
},
"nvim-dap": {
"commit": "10b5781"