Change some defaults and the completion window looks

This commit is contained in:
2025-02-03 15:00:49 +01:00
parent 443a0cb897
commit c8be7d19a7
2 changed files with 8 additions and 1 deletions

View File

@@ -16,6 +16,9 @@ cmp.setup({
},
-- Add borders to the windows
view = {
entries = "custom",
},
window = {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
@@ -105,6 +108,9 @@ cmp.setup.cmdline({ "/", "?" }, {
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
cmp.setup.cmdline(":", {
view = {
entries = { name = "wildmenu", separator = ":" },
},
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },