aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/string_spec.lua
diff options
context:
space:
mode:
authorTomasz N <przepompownia@users.noreply.github.com>2025-09-17 18:07:45 +0200
committerGitHub <noreply@github.com>2025-09-17 09:07:45 -0700
commite69b81ad94daf12401ad3d50bdabe440a4fd9466 (patch)
treeb42d8519ef2b2ce7ad0d0f5f15b034179fa160ab /test/functional/vimscript/string_spec.lua
parent63ece2b151e3d051d9366452441f64430ae5b45e (diff)
downloadrneovim-e69b81ad94daf12401ad3d50bdabe440a4fd9466.tar.gz
rneovim-e69b81ad94daf12401ad3d50bdabe440a4fd9466.tar.bz2
rneovim-e69b81ad94daf12401ad3d50bdabe440a4fd9466.zip
fix(lsp): treat 2-triggers-at-once as "last char wins" #35435
Problem: If there are 2 language servers with different trigger chars (`-` and `>`), and a keymap inputs both simultaneously (`->`), then `>` doesn't trigger. We get completion items from server1 only. This happens because the `completion_timer` for the `-` trigger is still pending. Solution: If the next character arrived enough quickly (< 25 ms), replace the existing deferred autotrigger with a new one that matches this later character.
Diffstat (limited to 'test/functional/vimscript/string_spec.lua')
0 files changed, 0 insertions, 0 deletions