nvim: plugins: Add cmdline completion

This commit is contained in:
Sanchayan Maity 2021-11-29 13:58:19 +05:30
parent 677ec666e6
commit 7001fc4603
2 changed files with 15 additions and 0 deletions

View file

@ -68,3 +68,17 @@ cmp.setup {
ghost_text = { hl_group = 'Hint' },
}
}
cmp.setup.cmdline('/', {
sources = {
{ name = 'buffer' }
}
})
cmp.setup.cmdline(':', {
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})

View file

@ -24,6 +24,7 @@ local init = function ()
'hrsh7th/cmp-nvim-lua',
'hrsh7th/cmp-buffer',
'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline',
'onsails/lspkind-nvim',
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',