Skip to content

Commit

Permalink
bugfix for completeopt
Browse files Browse the repository at this point in the history
  • Loading branch information
jayli committed Sep 9, 2024
1 parent 37703f3 commit 6fe60bd
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,14 @@ Global configurations:
| `g:easycomplete_diagnostics_hover` | 1 | Gives a diagnostic prompt when the cursor holds |
| `g:easycomplete_pum_format` | `["abbr", "kind", "menu"]`| Pmenu format |

For most of vim's default configurations, noselect is not included in completeopt, which will result in the first item of the matching menu being selected by default. To avoid this, it can add this command in your vimrc `setlocal completeopt+=noselect`. Or add this code to your `init.lua` file:

```lua
vim.cmd([[
setlocal completeopt+=noselect
]])
```

Typing `:h easycomplete` for help.

## Language Support
Expand Down

0 comments on commit 6fe60bd

Please sign in to comment.