Fix: fix autocompletion in cmd line

This commit is contained in:
Bertrand Benjamin 2022-05-05 14:15:30 +02:00
parent bd62855dc9
commit d853923953

View File

@ -118,6 +118,15 @@ cmp.setup.cmdline('/', {
}
})
cmp.setup.cmdline(':', {
mapping = cmp.mapping.preset.cmdline(),
sources = cmp.config.sources({
{ name = 'path' }
}, {
{ name = 'cmdline' }
})
})
vim.cmd [[autocmd FileType TelescopePrompt lua require('cmp').setup.buffer { enabled = false }]]
vim.g.vsnip_snippet_dir = '~/.config/nvim/vsnips'