Home

Awesome

Easily complete you

"Keep It Simple, Stupid."

image

Requires

  1. Vim >= 8.2 or neovim >= 0.5.0.

(DO NOT need python)

Install

Using some Plugin-manager like vim-plug or Vunble: Put the line into your vimrc, then install it.

For vim-plug:

Plug 'JimmyHuang454/EasyCompleteYou'

For user in China:

Plug 'https://gitee.com/Jimmy_Huang/EasyCompleteYou2'

Usage

You can use :ECY to list all commands. Finally, you should selete an engine that works at current filetype by :ECYSwitchEngine. Optionally, you need to install ultisnips to enable Snippet feature.

Available Engines

NameProgramming LanguageInstallerLink
ECY.engines.default_engineAll--
ECY_engines.cpp.clangdC/C++Yesclangd
ECY_engines.python.jedi_lsPython3Yesjedi language server
ECY_engines.html.htmlHTMLYes-
ECY_engines.viml.vimlspVimlYesviml language server
ECY_engines.html.vlsVueYesvue language server
ECY_engines.lua.luaLuaYeslua language server

Add custom Language Server

Example:

let g:ECY_config = {
      \'name_of_the_LS':
      \{'cmd': 'jedi-language-server', 'filetype': ['python'], 
      \'initializationOptions': {'completion': {'enabled': v:true}}},
      \}

Config

Example:

let g:ECY_config = {
      \'ECY_engines.python.jedi_ls':{'cmd': 'jedi-language-server'},
      \'ECY_engines.html.html': {'cmd': 'vscode-html-language-server'},
      \'ECY': {'completion': {'color': {'matched':'my_matched_color'}}},
      \}