Skip to content
This repository has been archived by the owner on Oct 13, 2021. It is now read-only.

With narrow screen, completion list of methods overlaps the documentation window #358

Open
baco opened this issue Mar 21, 2021 · 0 comments

Comments

@baco
Copy link

baco commented Mar 21, 2021

When the space at either side of the completion list is too narrow, the documentation floating-window gets behind completion list, having part of the text impossible to read.

My testing minimal init.vim

" nvim-lspconfig
lua require('lspconfig').pyls.setup{}

" completion-nvim
autocmd FileType python lua require('completion').on_attach()
let g:completion_matching_strategy_list = ['exact', 'substring', 'fuzzy']
let g:completion_matching_ignore_case = 1  " not v:true, 1. ¯\_(ツ)_/¯
let g:completion_matching_smart_case = 1  " not v:true, 1. ¯\_(ツ)_/¯
let g:completion_trigger_on_delete = 1  " not v:true, 1. ¯\_(ツ)_/¯

How to reproduce

  • Have launched vim in a 80 column terminal
  • Intent a line as if you needed to write your first character around column 40 (half of the width of the terminal)
  • Start typing and select some of the completions
  • Sometimes the documentation window gets underneath the completion list like this:

Screenshot from 2021-03-20 19-28-09

Expected behavior
Not having documentation underneath the list of completions because it makes it impossible to read.

@baco baco changed the title Whith narrow screen, completion list of methods overlaps the documentation window With narrow screen, completion list of methods overlaps the documentation window Mar 24, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant