feat(vim): add path completion to cmdline

This is actually quite nice. I use it all the time to be realy lazy and
type commands without capitalization.
This commit is contained in:
Ade Attwood 2023-11-04 07:49:57 +00:00
parent 6ba33108e2
commit ba4aca9636

View file

@ -90,3 +90,11 @@ cmp.setup({
},
})
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{ name = "cmdline" },
}),
})