Skip to content
This repository was archived by the owner on Jan 10, 2024. It is now read-only.

girishji/lsp-complete.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Caution

THIS PLUGIN IS NO LONGER NEEDED. The functionality is already merged into vimcomplete.



LSP Source for Vimcomplete Plugin

This plugin sources autocompletion items from LSP for Vimcomplete autocompletion plugin.

Requirements

Installation

Install this plugin after installing LSP and Vimcomplete.

Install using vim-plug.

vim9script
plug#begin()
Plug 'girishji/lsp-complete.vim'
plug#end()

For those who prefer legacy script.

call plug#begin()
Plug 'girishji/lsp-complete.vim'
call plug#end()

Or use Vim's builtin package manager.

Configuration

Default options are as follows.

vim9script
export var options: dict<any> = {
    enable: true,    # 'false' to disable this extension
    priority: 8,     # Higher priority items are shown at the top
    maxCount: 10,    # Maximum number of items shown
    dup: true,       # `true` allows duplicate completion words
    keywordOnly: false, # 'false' will complete after '.' in 'builtins.'
}

Options can be modified using g:VimCompleteOptionsSet(). It takes a dictionary as argument. If you are using vim-plug then call this function through VimEnter autocommand event.

autocmd VimEnter * g:VimCompleteOptionsSet(options)

About

Autocompletion based on LSP for Vimcomplete.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •