aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim/_system.lua
diff options
context:
space:
mode:
authorMathias Fussenegger <f.mathias@zignar.net>2025-01-17 15:27:50 +0100
committerMathias Fußenegger <mfussenegger@users.noreply.github.com>2025-01-17 18:34:58 +0100
commitb9e6fa7ec81c463d77cc919392b52f6df2d8d304 (patch)
tree65b38a382a4f9bdb712c2b07d93d79efa80fe1c1 /runtime/lua/vim/_system.lua
parent3530182ba491ba8663b40bdff0c044d74e89bb82 (diff)
downloadrneovim-b9e6fa7ec81c463d77cc919392b52f6df2d8d304.tar.gz
rneovim-b9e6fa7ec81c463d77cc919392b52f6df2d8d304.tar.bz2
rneovim-b9e6fa7ec81c463d77cc919392b52f6df2d8d304.zip
fix(lsp): use filterText as word if textEdit/label doesn't match
Problem: With language servers like lemminx, completing xml tags like `<mo` first shows the right candidates (`modules`) but after typing `d` the candidates disappear. This is because the server returns: [...] filterText = "<module", label = "module", textEdit = { newText = "<module>$1</module>$0", Which resulted in `module` being used as `word`, and `module` doesn't match the prefix `<mo`. Typing `d` causes the `complete()` filtering mechanism to kick in and remove the entry. Solution: Use `<module` from the `filterText` as `word` if the textEdit/label heuristic doesn't match.
Diffstat (limited to 'runtime/lua/vim/_system.lua')
0 files changed, 0 insertions, 0 deletions