feat(nvim): configure cmdline completion

This commit is contained in:
Oliver Davies 2023-10-27 21:12:23 +01:00
parent 96cb167906
commit e5c40a7a14

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 [[ vim.cmd [[
augroup DadbodSql augroup DadbodSql
au! au!