Skip to content
This repository has been archived by the owner on Jun 16, 2023. It is now read-only.

JimmyHuang454/EasyCompleteYou

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
doc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Name Programming Language Installer Link
ECY.engines.default_engine All - -
ECY_engines.cpp.clangd C/C++ Yes clangd
ECY_engines.python.jedi_ls Python3 Yes jedi language server
ECY_engines.html.html HTML Yes -
ECY_engines.viml.vimlsp Viml Yes viml language server
ECY_engines.html.vls Vue Yes vue language server
ECY_engines.lua.lua Lua Yes lua 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'}}},
      \}