https://github.com/girishji/lsp-complete.vim
Autocompletion based on LSP for Vimcomplete.
https://github.com/girishji/lsp-complete.vim
autocomplete vim vim9-plugin vimcomplete
Last synced: 6 months ago
JSON representation
Autocompletion based on LSP for Vimcomplete.
- Host: GitHub
- URL: https://github.com/girishji/lsp-complete.vim
- Owner: girishji
- License: mit
- Archived: true
- Created: 2023-08-10T14:25:28.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-01-10T19:31:10.000Z (over 1 year ago)
- Last Synced: 2024-08-07T18:45:29.078Z (10 months ago)
- Topics: autocomplete, vim, vim9-plugin, vimcomplete
- Language: Vim Script
- Homepage: https://github.com/girishji/vimcomplete
- Size: 8.79 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
> [!CAUTION]
> THIS PLUGIN IS NO LONGER NEEDED.
> The functionality is already merged into [vimcomplete](https://github.com/girishji/vimcomplete).------
------#### LSP Source for Vimcomplete Plugin
This plugin sources autocompletion items from
[LSP](https://github.com/yegappan/lsp) for
[Vimcomplete](https://github.com/girishji/vimcomplete) autocompletion plugin.# Requirements
- Vim >= 9.0
- [Vimcomplete](https://github.com/girishji/vimcomplete)
- [LSP Client](https://github.com/yegappan/lsp)# Installation
Install this plugin after installing [LSP](https://github.com/yegappan/lsp) and
[Vimcomplete](https://github.com/girishji/vimcomplete).Install using [vim-plug](https://github.com/junegunn/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 = {
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](https://github.com/junegunn/vim-plug) then call this function through
__VimEnter__ autocommand event.```
autocmd VimEnter * g:VimCompleteOptionsSet(options)
```