mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 06:28:35 +00:00
vim-patch:9.1.1056: Vim doesn't highlight to be inserted text when completing (#32251)
Problem: Vim doesn't highlight to be inserted text when completing
Solution: Add support for the "preinsert" 'completeopt' value
(glepnir)
Support automatically inserting the currently selected candidate word
that does not belong to the latter part of the leader.
fixes: vim/vim#3433
closes: vim/vim#16403
edd4ac3e89
Co-authored-by: glepnir <glephunter@gmail.com>
This commit is contained in:
@@ -1494,6 +1494,7 @@ local options = {
|
||||
'noselect',
|
||||
'fuzzy',
|
||||
'nosort',
|
||||
'preinsert',
|
||||
},
|
||||
flags = true,
|
||||
deny_duplicates = true,
|
||||
@@ -1542,6 +1543,12 @@ local options = {
|
||||
nosort Disable sorting of completion candidates based on fuzzy
|
||||
scores when "fuzzy" is enabled. Candidates will appear
|
||||
in their original order.
|
||||
|
||||
preinsert
|
||||
Preinsert the portion of the first candidate word that is
|
||||
not part of the current completion leader and using the
|
||||
|hl-ComplMatchIns| highlight group. Does not work when
|
||||
"fuzzy" is also included.
|
||||
]=],
|
||||
full_name = 'completeopt',
|
||||
list = 'onecomma',
|
||||
|
Reference in New Issue
Block a user