Closed CtrlAltDelight closed 10 months ago
Submitted a pull request.
Hmm, not sure why it isn't working for you as is. The cmp sources includes the path and it is working for me. The setup function's sources property should look like this:
cmp.setup({
-- sources for autocompletion
sources = cmp.config.sources({
{ name = "nvim_lsp" },
{ name = "luasnip" }, -- snippets
{ name = "buffer" }, -- text within current buffer
{ name = "path" }, -- file system paths
})
})
It works in your recent video for you, but when I tried it I had to add some code before file paths would auto complete.
I'll make a pull request and link it here.