noib3 / nvim-completion

:zap: An async autocompletion framework for Neovim
MIT License
503 stars 13 forks source link

fixes #10 #11

Closed MurdeRM3L0DY closed 2 years ago

MurdeRM3L0DY commented 2 years ago

This should fix this but I would like to further investigate the positioning mechanism.

noib3 commented 2 years ago

This may fix that particular issue, but then the completion menu is positioned one column too much to the right whenever the left border is present. Maybe use

if cols_before > 0 and menu_border.has_left_edge() {
    cols_before -= 1;
}

instead.