]> git.ipfire.org Git - thirdparty/vim.git/commit
patch 9.1.1049: insert-completed items are always sorted v9.1.1049
authorglepnir <glephunter@gmail.com>
Thu, 23 Jan 2025 18:55:14 +0000 (19:55 +0100)
committerChristian Brabandt <cb@256bit.org>
Thu, 23 Jan 2025 18:59:28 +0000 (19:59 +0100)
commitf400a0cc41113eb75516bdd7f38aeaa15208ba2c
tree3e5cb9fac67a4c79decf26ea8a91e1769108453a
parentdf098fedbc2c481e91ea7e6207dab90359a92cc3
patch 9.1.1049: insert-completed items are always sorted

Problem:  insert-completed items are always sorted, although the LSP
          spec[1] standard defines sortText in the returned
          completionitem list. This means that the server has sorted the
          results. When fuzzy is enabled, this will break the server's
          sorting results.
Solution: disable sorting of candidates when "nosort" is set in
          'completeopt'

[1]
https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#completionItem

closes: #16501

Signed-off-by: glepnir <glephunter@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/doc/options.txt
runtime/doc/version9.txt
src/insexpand.c
src/option.h
src/optionstr.c
src/testdir/test_ins_complete.vim
src/version.c