diff options
author | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-14 03:48:44 +0100 |
---|---|---|
committer | Jérémy Zurcher <jeremy@asynk.ch> | 2023-11-14 03:48:44 +0100 |
commit | 69d58ba0a84c945feec9588ab6fcf4700a5e61e7 (patch) | |
tree | 9605138671b490ec22a0b1730ca538edd144f13a /lua/user | |
parent | 2ad77ac13f854b9825ea3317da26130d265c134e (diff) | |
download | vim-69d58ba0a84c945feec9588ab6fcf4700a5e61e7.zip vim-69d58ba0a84c945feec9588ab6fcf4700a5e61e7.tar.gz |
cmp : fix documentation, CR do not auto select
Diffstat (limited to 'lua/user')
-rw-r--r-- | lua/user/core/cmp.lua | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lua/user/core/cmp.lua b/lua/user/core/cmp.lua index 2266fbc..3a7a88f 100644 --- a/lua/user/core/cmp.lua +++ b/lua/user/core/cmp.lua @@ -68,7 +68,7 @@ cmp.setup { }, -- Accept currently selected item. If none selected, `select` first item. -- Set `select` to `false` to only confirm explicitly selected items. - ["<CR>"] = cmp.mapping.confirm { select = true }, + ["<CR>"] = cmp.mapping.confirm { select = false }, ["<Tab>"] = cmp.mapping(function(fallback) if cmp.visible() then cmp.select_next_item() @@ -125,7 +125,9 @@ cmp.setup { select = false, }, window = { - documentation = "native", + documentation = { + border = {'╭', '─', '╮', '│', '╯', '─', '╰', '│'}, + }, }, experimental = { ghost_text = true, -- grey autosuggestion |