nvim-completion-manager icon indicating copy to clipboard operation
nvim-completion-manager copied to clipboard

Screenshots, Updates, Announcement

Open roxma opened this issue 9 years ago • 53 comments

Inspired by deoplete.

This issue is a good place to upload screenshots for README.md.

Screenshots shoould not be put into git repo, otherwise it will make the plugin download time much much longer .

Additional tips screenshots will also be published in this issued,

Subscribe this issue if you are interested

roxma avatar Feb 07 '17 08:02 roxma

All in one screenshot

output

roxma avatar Feb 08 '17 03:02 roxma

Triggering Ultisnips or show popup hints with the same key <c-u>

When the expand key is pressed and nothing has been typed, a popup list for snippets will be triggered.

let g:UltiSnipsExpandTrigger = "<Plug>(ultisnips_expand)"
inoremap <silent> <c-u> <c-r>=cm#sources#ultisnips#trigger_or_popup("\<Plug>(ultisnips_expand)")<cr>

output

roxma avatar Feb 09 '17 10:02 roxma

Add css completion for inline style attribute:

output

roxma avatar Feb 13 '17 04:02 roxma

Added C/C++ code completion with clang_complete

output

roxma avatar Feb 16 '17 14:02 roxma

Just implemented a <c-n><c-x><c-n>... like completion source:

https://github.com/roxma/nvim-completion-manager/issues/24#issuecomment-283635150

Pick a key to map to <Plug>(cm_force_refresh)

imap <c-g> <Plug>(cm_force_refresh)

I also have tab mapping

      " smart tab for auto complete
      inoremap <expr> <silent> <Tab>  pumvisible()?"\<C-n>":"\<TAB>"
      inoremap <expr> <silent> <S-TAB>  pumvisible()?"\<C-p>":"\<S-TAB>"

<Tab> for selecting the popup item, <c-g> for refreshing the popup menu. So the key pressed in this screencast is <TAB><c-g><TAB><c-g>...

output

roxma avatar Mar 02 '17 12:03 roxma

copied from https://github.com/neovim/neovim/issues/5522#issuecomment-284122091:

Since LanguageClient-neovim already has nice interface, I'm deprecating my previous nvim-cm-php-language-server

Here's a simple php language server package that could be easily setup to work with LanguageClient-neovim, and it is well integrated with nvim-completion-manager

roxma avatar Mar 04 '17 03:03 roxma

From https://github.com/roxma/nvim-completion-manager/issues/36#issuecomment-284948146:

Just take a deeper look into ultisnips, now parameter expansion works with ultisnips, :smile:

roxma avatar Mar 08 '17 05:03 roxma

Parameter expandsion for python, javascript, golang, via ultisnips/neosnippet

output

roxma avatar Mar 09 '17 13:03 roxma

I have just finished adding NCM support to https://github.com/clojure-vim/async-clj-omni for Fireplace only. Acid.nvim will soon be supported also, once I have performed some refactoring.

This brings Clojure support to NCM.

There is currently no caching of completions, but there is contention between the underlying engine & NCM. I have some ideas of how to bring them together though, so expect caching as an upcoming feature.

SevereOverfl0w avatar Mar 20 '17 11:03 SevereOverfl0w

Rust completion:

I've been learning rust recently and just implemented a completion plugin based on racer last night. I'm not sure I'm getting racer working the right way. It works but I still miss the macro completion.

https://github.com/roxma/nvim-cm-racer

output

roxma avatar Apr 14 '17 02:04 roxma

Thanks to @lervag and @Shougo, vimscript completion is available via neco-vim

roxma avatar Apr 25 '17 09:04 roxma

I have added simple Swift completion using sourcekitten: nvim-cm-swift-completer Any suggestion to improve it is welcome

screencast

dafufer avatar Jun 01 '17 20:06 dafufer

gtags complete source gen_tags.vim gtags source

jsfaint avatar Jun 05 '17 03:06 jsfaint

I added ncm source for neco-syntax Thanks @shougo, the source was already merged into neco-syntax neco-syntax

jsfaint avatar Jun 06 '17 00:06 jsfaint

I also add neoinclude support too.

But I'm a little confused about the source priority that which one should be higher? neoinclude(file include) or neco-syntax(language syntax) Currently I give 8 to both of them. neco-syntax mod was already merged to Shougo's repository, but neoinclude mod is not merged yet.

neoinclude screenshot here: neoinclude

jsfaint avatar Jun 12 '17 08:06 jsfaint

@jsfaint

But I'm a little confused about the source priority that which one should be higher? neoinclude(file include) or neco-syntax(language syntax)

It seems they don't usually apear at the same time. So it doesn't matter.

roxma avatar Jun 12 '17 10:06 roxma

@roxma Got it, thanks for your clarification 👍 I'll create PR for neoinclude

jsfaint avatar Jun 12 '17 10:06 jsfaint

https://github.com/roxma/ncm-github Github completion is added. The idea was borrowed from https://github.com/rhysd/github-complete.vim . thanks to @rhysd and @ahmedelgabri #92

I re-implement it in python, so that the sources should work asynchronously.

roxma avatar Jun 26 '17 09:06 roxma

let g:cm_matcher = {'module': 'cm_matchers.substr_matcher', 'case': 'smartcase'}

Added sub-string based mathing.

roxma avatar Aug 29 '17 10:08 roxma

Added a toy project: ncm-phpactor

roxma avatar Aug 29 '17 13:08 roxma

Another plugin ncm-clang for c/c++ completion. This project deprecates roxma/clang_complete

roxma avatar Sep 30 '17 02:09 roxma

Adding typescript source: https://github.com/mhartington/nvim-typescript/pull/81

roxma avatar Oct 11 '17 14:10 roxma

I've created a source for the R language: https://github.com/gaalcaras/ncm-R

fullscreen screencast

Please note that Nvim-R is required for ncm-R to work.

gaalcaras avatar Dec 07 '17 14:12 gaalcaras

support for NCM now CS https://github.com/cyansprite/omnisharp.nvim

cyansprite avatar Jan 22 '18 14:01 cyansprite

I'm sorry to announce that my interest moves to some other projects, due to lack of time I may not update this repo for a long while.

If anyone wants to keep a well-maintained fork, post your link here. I'll put it on top of the README page.

roxma avatar Apr 18 '18 10:04 roxma

@roxma Do you think ncm stilll has any significant advantages over deoplete to make it worth maintaining it or would you recommend people to move over to deoplete in the long run?

mfussenegger avatar Apr 18 '18 18:04 mfussenegger

@mfussenegger it has advantages over deoplete?

andreyorst avatar Apr 18 '18 19:04 andreyorst

I think it has advantages of every other completion manager out there. I sincerely hope someone takes it on

-- John Shea Cell: 617-605-5763 Email: [email protected]

On Apr 18, 2018, at 3:15 PM, Andrey Orst [email protected] wrote:

@mfussenegger it has advantages over deoplete?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.

coachshea avatar Apr 18 '18 19:04 coachshea

@coachshea not that I do not believe ncm has no advantages, could you elaborate on what the advantages are compared to deoplete?

nhooyr avatar Apr 18 '18 21:04 nhooyr

@nhooyr, I should have been a little more careful with my language. Of course, I have more experience with some systems than others. I have just loved my experience with ncm and am sad to see it -- possibly -- come to an end. I did try deoplete several years ago and I don't remember specifically why I didn't stay with it. All I do know is that I tried several at the time and chose to stick with YCM. I was by and large happy with YCM and never thought I would try another, but for a variety of reasons, I gave ncm a shot, and I instantly loved it. I made the switch and never (until now) looked back. I'll list some of what I love best about it. It is certainly possible that deoplete, or some other completion manager has similar features and maybe I will have to give it a try again.

First, the start up time is instantaneous. One of my few complaints about YCM was startup time. There are a lot of things I liked about the completions, but maybe most of all was the "on-the-fly" snippet creation. I also loved that you could choose regular or fuzzy completion, and how easy it was for others to create add-ons for other filetypes (I realize that in that regard deoplete is similar).

coachshea avatar Apr 18 '18 21:04 coachshea