Documentation window obstructs suggestions window when suggestions window is too wide. #1812
Open
2 tasks done
Labels
bug
Something isn't working
FAQ
Announcement
Minimal reproducible full config
Description
The documentation window obstructs suggestions window when suggestions window is too wide. This seems to only happen when the windows are set to be bordered and
selection_order = 'near_cursor'
. See the screenshots below in the "Steps to Reproduce" section.Steps to reproduce
echo "import sys" > test.py
nvim -u ~/cmp-repro.vim test.py
sys.audit.
cmp.config.window.bordered()
)This repros the issue by using an extremely narrow window, but here is an example that can happen with a normal window size when the suggestion window is wide from its long method signatures:
![image](https://private-user-images.githubusercontent.com/5790854/302022590-c3a7d92c-9153-4443-ba42-6308e4577d7c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NDEzNzAsIm5iZiI6MTcyMzc0MTA3MCwicGF0aCI6Ii81NzkwODU0LzMwMjAyMjU5MC1jM2E3ZDkyYy05MTUzLTQ0NDMtYmE0Mi02MzA4ZTQ1NzdkN2MucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTVUMTY1NzUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZmY4NTMxYzI2NDY3Yjc1MDI0YTM0MzM4MmE5YzRiZmU5ZTQzOTIzMzE4NTAwOTM2ZjNmODc1NWZiMThiZGQ5YyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.VOC6mctvYh_VmGR_McRnc3dYXr7_lSE00olZPW1xVFA)
Expected behavior
We do not expect the documentation to cover the suggestion window. When the bordered window is not set, the documentation either does not show or only takes up the space around the suggestions.
![image](https://private-user-images.githubusercontent.com/5790854/302022695-bfb0ac48-3d63-44bc-8bc1-f1fc4400f00c.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjM3NDEzNzAsIm5iZiI6MTcyMzc0MTA3MCwicGF0aCI6Ii81NzkwODU0LzMwMjAyMjY5NS1iZmIwYWM0OC0zZDYzLTQ0YmMtOGJjMS1mMWZjNDQwMGYwMGMucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgxNSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MTVUMTY1NzUwWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YWVjM2E3MzQ5MzNiOGJlNmNhYmQ3YzU0ODZlZjcyMzUzODk4ZWVkYWQ0M2RjNWEwNTFjZmYwYTQ5YWJkODUyZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.SwgiycRoHJ8DaxA5WlvLTgePeIyGHufDKiWS36SHsxU)
Actual behavior
Documentations window blocks the suggestions window. See the screenshot in "Steps to Reproduce" section.
Additional context
No response
The text was updated successfully, but these errors were encountered: