feat(nvim): configure cmdline completion

This commit is contained in:
Oliver Davies 2023-10-27 21:12:23 +01:00
parent ff97af5b76
commit 941d9951bd

View file

@ -67,6 +67,22 @@ cmp.setup {
},
}
cmp.setup.cmdline({ "/", "?" }, {
mapping = cmp.mapping.preset.cmdline(),
sources = {
{ name = "buffer" },
},
})
cmp.setup.cmdline(":", {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = "path" },
}, {
{ name = "cmdline" },
}),
})
vim.cmd [[
augroup DadbodSql
au!