Skip to content

Chatyusha/easy-ddc.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

easy-ddc.vim

This is a plugin to simplify the configuration of ddc.vim.

Note: This Plugin depends on ddc.vim and dein.vim, and ddc.vim requires Neovim (0.5.0+ and of course, latest is recommended) or Vim 8.2.0662.

Install

Install Deno

Execute the following commands to install Deno according to your OS and architecture.

Linux(x86_64)/Mac(X86_64)

curl -fsSL https://deno.land/x/install/install.sh | sh

Windows(Powershell)

iwr https://deno.land/x/install/install.ps1 -useb | iex

Mac(M1)/Linux(Arm64)

# After installing cargo, build Deno.
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

git clone https://github.com/denoland/deno_install.git
cd deno_install
cargo install deno --locked

If you want more information, please look here.

Install ddc.vim

dein

call dein#begin()

call dein#add('Shougo/ddc.vim')
call dein#add('vim-denops/denops.vim')

call dein#add('Chatyusha/easy-ddc.vim')

call dein#end()

Options

option meaning default
ddc_sources ddc sources to use ['ddc-around','default']

Templates

The list of ddc-sources supported by this plugin, and templates are in ./tmp

I am going to add more ddc-source templates in the future.

template name repository
default Shougo/ddc-macher_head and Shougo/ddc-sorter_rank
ddc-around Shougo/ddc-around
ddc-omni Shougo/ddc-omni
ddc-vim-lsp shun/ddc-vim-lsp
ddc-file LumaKernel/ddc-file

Usage

Make an array of the ddc-sources you want to use and assign it to the global variable ddc_sources.(default [default, ddc-around]), and then run call easyddc#install_sources() You can choose ddc-sources from templates.

For example, when you use default and ddc-around, set the global valiable ddc_sources as follows, let g:ddc_sources = ['default', 'ddc-around']

Example

(vimrc/init.vim)

let g:ddc_sources = ['default', 'ddc-around']

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published