Skip to content

Commit

Permalink
Merge pull request #290 from jayli/dev
Browse files Browse the repository at this point in the history
custom pum window in nvim
  • Loading branch information
jayli authored Dec 30, 2023
2 parents df1dc99 + 8ae5a32 commit c46f3cc
Show file tree
Hide file tree
Showing 14 changed files with 1,336 additions and 253 deletions.
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ Global configurations
| `g:easycomplete_diagnostics_enable` | 1 | Enable diagnostics |
| `g:easycomplete_signature_enable` | 1 | Enable signature |
| `g:easycomplete_diagnostics_hover` | 1 | Gives a diagnostic prompt when the cursor holds |
| `g:easycomplete_fuzzymatch_hlgroup` | `""` | Custom fuzzy matching charactors Highlight group name |

Typing `:h easycomplete` for help.

Expand Down Expand Up @@ -248,12 +249,12 @@ Install TabNine: `:InstallLspServer tabnine`. Then restart your vim/nvim.
Set `let g:easycomplete_tabnine_enable = 0` to disable TabNine. You can config TabNine by `g:easycomplete_tabnine_config` witch contains two properties:

- *line_limit*: The number of lines before and after the cursor to send to TabNine. If the option is smaller, the performance may be improved. (default: 1000)
- *max_num_result*: Max results from TabNine. (default: 10)
- *max_num_result*: Max results from TabNine. (default: 3)

```vim
let g:easycomplete_tabnine_config = {
\ 'line_limit': 1000,
\ 'max_num_result' : 10,
\ 'max_num_result' : 3,
\ }
```

Expand All @@ -269,6 +270,8 @@ If you just want to use default nerdfonts configuration, you can simplily config

If you want to customize the kind icon, you can modify the configuration with <https://nerdfonts.com> installed. [Examples](beautify-menu-items.md).

You can add custom fuzzy matching charactors your own high light group via `g:easycomplete_fuzzymatch_hlgroup = "MyGroup"`.

## Add custom completion plugin

[add custom completion plugin](add-custom-plugin.md)
Expand Down
Loading

0 comments on commit c46f3cc

Please sign in to comment.