roxma / nvim-completion-manager

:warning: PLEASE USE https://github.com/ncm2/ncm2 INSTEAD
MIT License
917 stars 49 forks source link

Issues about file path and c++ header completion and neosnippet #37

Closed theFool32 closed 7 years ago

theFool32 commented 7 years ago

nvim @ Arch

File path completion with nvim-completion-manager is not complete: image While use c-x c-f, all files are listed. image


I install clang_complete for c++ completion and notice it can't complete header. here gives a plugin which is not compatible with. Any suggestion?


By the way, I want to know whether there exists a plan to support neosnippet since I recognize it as more convenient to use when compared with Ultisnips.


Thanks for the nice plugin.

roxma commented 7 years ago

How many files are there in your /usr/lib directory? current file completion source limits the matches to 1024 files before filtering

roxma commented 7 years ago

I've pushed an update which may fix the filepath issue.

For neosnippet, this by @prabirshrestha looks like a nice implementation, I'll try find some time and port it to NCM and test it.

PRs are welcomed. If you have time, it should be simple like how it's done in the ultisnips source.

C/C++ Include path completion is in my todo list, too.

roxma commented 7 years ago

Sorry, closed by accident

theFool32 commented 7 years ago

File path completion works. Thanks.

roxma commented 7 years ago

@theFool32 neosnippets added. It feels lighter than ultisnips.

Since it's popular, and the overhead added for this source is small, I'm making it builtin source for convenience.

theFool32 commented 7 years ago

Oh god. You'r so effective!!!

roxma commented 7 years ago

Close this issue.

Open https://github.com/roxma/clang_complete/issues/4 for header completion.