Fix: fix autocompletion in cmd line
This commit is contained in:
parent
bd62855dc9
commit
d853923953
@ -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.cmd [[autocmd FileType TelescopePrompt lua require('cmp').setup.buffer { enabled = false }]]
|
||||||
vim.g.vsnip_snippet_dir = '~/.config/nvim/vsnips'
|
vim.g.vsnip_snippet_dir = '~/.config/nvim/vsnips'
|
||||||
|
Loading…
Reference in New Issue
Block a user