feat(nvim): added cmp buffer to / and ?

This commit is contained in:
Sergio Laín 2023-12-03 13:43:09 +01:00
parent d8fb18957d
commit ae1389f165
No known key found for this signature in database
GPG key ID: 14C9B8080681777B

View file

@ -29,5 +29,11 @@ return {
completion = cmp.config.window.bordered(),
documentation = cmp.config.window.bordered(),
}
cmp.setup.cmdline({ "/", "?" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
end,
}