diff options
| author | Marcus Caisey <marcus@teckna.com> | 2026-03-29 22:48:11 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-03-29 14:48:11 -0700 |
| commit | 2eb14c54bcdb5c1fd0ac5aab454336b5b0dc3eb2 (patch) | |
| tree | 65df4c55c80887ed57a6966ecde0384d3f9ef9f8 /scripts/lintcommit.lua | |
| parent | 44d1f82fbf3336d29925a270e12a61d9b1dc08bd (diff) | |
| download | rneovim-2eb14c54bcdb5c1fd0ac5aab454336b5b0dc3eb2.tar.gz rneovim-2eb14c54bcdb5c1fd0ac5aab454336b5b0dc3eb2.tar.bz2 rneovim-2eb14c54bcdb5c1fd0ac5aab454336b5b0dc3eb2.zip | |
fix(lsp): highlight snippet preview when server can't completionItem/resolve (#38534)
Problem:
The snippet preview is not being highlighted by treesitter for
completion items from servers which don't support
`completionItem/resolve` (like gopls). This was broken by #38428.
Solution:
Call `update_popup_window` after updating the completion item with the
snippet preview.
I've added assertions to the `selecting an item triggers
completionItem/resolve + (snippet) preview` test case which covers the
snippet preview being shown since no tests failed when I removed the
`nvim__complete_set` call which actually populates the preview on this
codepath.
Diffstat (limited to 'scripts/lintcommit.lua')
0 files changed, 0 insertions, 0 deletions