mirror of
https://github.com/neovim/neovim.git
synced 2026-05-04 13:05:05 +00:00
vim-patch:9.1.0463: no fuzzy-matching support for insert-completion
Problem: no fuzzy-matching support for insert-completion
Solution: enable insert-mode completion with fuzzy-matching
using :set completopt+=fuzzy (glepnir).
closes: vim/vim#14878
a218cc6cda
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
11
runtime/lua/vim/_meta/options.lua
generated
11
runtime/lua/vim/_meta/options.lua
generated
@@ -1061,6 +1061,10 @@ vim.bo.cfu = vim.bo.completefunc
|
||||
--- completion in the preview window. Only works in
|
||||
--- combination with "menu" or "menuone".
|
||||
---
|
||||
--- popup Show extra information about the currently selected
|
||||
--- completion in a popup window. Only works in combination
|
||||
--- with "menu" or "menuone". Overrides "preview".
|
||||
---
|
||||
--- noinsert Do not insert any text for a match until the user selects
|
||||
--- a match from the menu. Only works in combination with
|
||||
--- "menu" or "menuone". No effect if "longest" is present.
|
||||
@@ -1069,9 +1073,10 @@ vim.bo.cfu = vim.bo.completefunc
|
||||
--- select one from the menu. Only works in combination with
|
||||
--- "menu" or "menuone".
|
||||
---
|
||||
--- popup Show extra information about the currently selected
|
||||
--- completion in a popup window. Only works in combination
|
||||
--- with "menu" or "menuone". Overrides "preview".
|
||||
--- fuzzy Enable `fuzzy-matching` for completion candidates. This
|
||||
--- allows for more flexible and intuitive matching, where
|
||||
--- characters can be skipped and matches can be found even
|
||||
--- if the exact sequence is not typed.
|
||||
---
|
||||
--- @type string
|
||||
vim.o.completeopt = "menu,preview"
|
||||
|
||||
Reference in New Issue
Block a user