rcarriga / nvim-notify

A fancy, configurable, notification manager for NeoVim
MIT License
2.97k stars 78 forks source link

CTRL-W_W moves to the notification window #183

Closed riton closed 1 year ago

riton commented 1 year ago

Hi,

Question

I've just switched to lazyvim that bundles your plugin with this configuration.

I was previously used to rely on CTRL-W_W to move between windows.

My problem is that it seems that the notification window is also a real vim window . Resulting in the CTRL-W_W shortcut often moving my cursor to the notification window instead of my other buffer window when a notification is displayed.

I've tried to make a little video to illustrate that:

https://user-images.githubusercontent.com/553730/223159300-ec546d9e-5bab-49e3-8b3e-edfe56eb4e70.mp4

In the last seconds of the video, you should see that the vim cursor is in the notification window .

I'm kinda lost. Is there any workaround ? Should I use another shortcut to move between windows ?

Thanks in advance for your help !

Regards

Software versions

❯ nvim --version
NVIM v0.8.2
Build type: Release
LuaJIT 2.1.0-beta3
Compiled by runner@fv-az190-151
rcarriga commented 1 year ago

You can disable focusing on the window with the on_open setup option

    on_open = function(win)
      vim.api.nvim_win_set_config(win, { focusable = false })
    end,
riton commented 1 year ago

This just works ! Thanks @rcarriga

Regards

Galicarnax commented 1 month ago

I suggest this should be mentioned in README and/or :h notify.