-
-
Notifications
You must be signed in to change notification settings - Fork 24
Support for other completion plugins
alaviss edited this page Mar 12, 2020
·
1 revision
This page contains ways to configure your favorite completion plugin to work with nim.nvim
.
If you have successfully configured the plugin of your choice to work with nim.nvim
, please share it here with everyone :)
NCM2 (ncm2/ncm2
)
Authored by: @alaviss
Tested by: @mfiano
Add the following snippets to your configuration file
autocmd User Ncm2Plugin call ncm2#register_source({
\ 'name': 'nim.nvim',
\ 'priority': 9,
\ 'scope': ['nim'],
\ 'mark': 'nim',
\ 'on_complete': {ctx -> nim#suggest#sug#GetAllCandidates({start, candidates -> ncm2#complete(ctx, start, candidates)})}
\})