neovim-qt: Unable to use mouse scroll with neovim nightly

When running with neovim nightly, mouse scroll not works.

Reproduce

  • Run nvim-qt --nvim path/to/nvim.appimage path/to/neovim-qt/README.md

Environment

  • neovim-qt version: master(v0.2.16.9999)
  • nvim --version
NVIM v0.5.0-499-g1407899c3
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
Compilation: /usr/bin/gcc-5 -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -O2 -g -Og -g -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/home/travis/build/neovim/bot-ci/build/neovim/build/config -I/home/travis/build/neovim/bot-ci/build/neovim/src -I/home/travis/build/neovim/bot-ci/build/neovim/.deps/usr/include -I/usr/include -I/home/travis/build/neovim/bot-ci/build/neovim/build/src/nvim/auto -I/home/travis/build/neovim/bot-ci/build/neovim/build/include
Compiled by travis@travis-job-972e54f4-eecf-497b-a5fe-df9ad4e11565

Features: +acl +iconv +tui
See ":help feature-compile"

   system vimrc file: "$VIM/sysinit.vim"
  fall-back for $VIM: "
/home/travis/build/neovim/bot-ci/build/neovim/build/nvim.AppDir/usr/share/nvim
"

Run :checkhealth for more info

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 17 (1 by maintainers)

Most upvoted comments

I’m not opposed to making set mouse=a the default… I just don’t know of a safe way to do it.

It is ok for me as I have enabled this in my configuration. But I also suggest to add this in the README for newbie users like me at least. There maybe more mouse related issue comming here after neovim 0.5.0 release.

Sure, that’s a good idea. We can add an entry to the README and Wiki.

Good point, I updated set mouse=a comment above.

We don’t have enough control to properly enable this setting from neovim-qt. The option termguicolors is a different classification of options, see :h ui-option.

Consider the following:

  1. I am a user that does not want any mouse support in neovim-qt.
  2. I explicitly set set mouse= in my init.vim to disable this feature. This works today.
  3. We make mouse=a the default option in neovim-qt via nvim_gui_shim.vim
  4. The startup sequence is: init.vim -> nvim_gui_shim.vim -> ginit.vim
  5. We just broke a user’s existing configuration, mouse= was ignored.

There was some discussion of making mouse=a the default for neovim, where they have the ability to detect the explicitly set vs un-set case.