Skip to content

mg979/chaincomplete

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

72 Commits
 
 
 
 
 
 
 
 

Repository files navigation

chaincomplete.nvim

This is a completion plugin that leverages on built-in ins-completion, similar to vim-mucomplete.

Each buffer can have its own completion chain, that is made of several completion methods that are tried one after the other, until one produces some results. Chain methods can also be skipped with a mapping.

Autocompletion (completion as you type) is supported but it's not default.


Dependencies

nvim-lib


Features

Supported completion methods:

  • built-in completion methods (:help ins-completion)
  • LSP completion (built-in client)

Optional features:

  • autocompletion (as you type)
  • function documentation popup (during completion)
  • signature help (function parameters)
  • custom methods, with handlers based on complete()

Quick start

Example mappings:

imap <c-j> <Plug>(ChainComplete)
imap <c-;> <Plug>(ChainAdvance)

Note that autocompletion is disabled by default. To enable it:

:AutoComplete on

or in your vimrc:

vim.g.chaincomplete = { autocomplete = true }

while this will enable it for triggers only:

:AutoComplete triggers

or in your vimrc:

vim.g.chaincomplete = { autocomplete = 'triggers' }

For the rest of the documentation, :help chaincomplete


Credits

Bram Moolenar for Vim Lifepillar for vim-mucomplete Evgeni Chasnovski for mini.vim

About

Chained completion for neovim

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages