Closed mirosval closed 4 years ago
Somebody wrote a comment to use
let g:LanguageClient_hoverPreview = 'always'
This works, as in it always forces the floating window, even for one line text.
I would suggest that always
is the default, because otherwise its inconsistent and confusing.
Sorry, for deleting the comment. I thought it was off-topic because the documentation says it is the default.
So maybe the documentation should be updated or always really be the default.
bin/languageclient --version
to get its version number. No:checkhealth LanguageClient
?Describe the bug
1 . Using the minimal vim config, with a working RLS I open a rust project and press
K
to show hover information.Environment
nvim --version
orvim --version
): ```NVIM v0.4.3 Build type: Release LuaJIT 2.0.5 Compilation: /usr/local/Homebrew/Library/Homebrew/shims/mac/super/clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNDEBUG -DMIN_LOG_LEVEL=3 -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/config -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/src -I/usr/local/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/deps-build/include -I/usr/local/opt/gettext/include -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.15.sdk/usr/include -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/src/nvim/auto -I/tmp/neovim-20191107-85913-1wbgqz6/neovim-0.4.3/build/include Compiled by brew@Catalina.localFeatures: +acl +iconv +tui See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/usr/local/Cellar/neovim/0.4.3/share/nvim"
Run :checkhealth for more info
To Reproduce
.vimrc
in the local dirnvim -u .vimrc src/lib.rs
:PlugInstall
, restart nvimnvim -u .vimrc src/lib.rs
shift+K
Current behavior
Symbol hover description is shown on the bottom line of the vim window
Expected behavior
Symbol hover description should be above or below the line with the Symbol hovered
Screenshots
https://imgur.com/yIkNQOF
Additional context
I'm using macOS Catalina (10.15.1 (19B88)). Tmux 2.9, zsh. I'm using Alacritty 0.4, but I've had this problem with older Alacritty and I also have it in macOS Terminal.
Weird thing is that the Language Server works, because all its functions work. The floating window of nvim also works, I checked by creating a minimal coc setup where it worked out of the box.