folke / noice.nvim

💥 Highly experimental plugin that completely replaces the UI for messages, cmdline and the popupmenu.
Apache License 2.0
4.15k stars 95 forks source link

`@recording` messages not showing #211

Closed lostl1ght closed 1 year ago

lostl1ght commented 1 year ago

Describe the bug After fb0e3b0 showing @recording messages is not working with both recipes from wiki, the macro itself is getting recorded.

Which version of Neovim are you using?

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

system vimrc file: "$VIM/sysinit.vim" fall-back for $VIM: "/share/nvim"

Run :checkhealth for more info


**To Reproduce**
Steps to reproduce the behavior:
1. Press `qa`
2. Observe that lualine component is not showing and a notification is cleared too early

**Expected Behavior**
Statusline component should be shown and the notification should not be cleared too early.

**Screenshots**
Not applicable.

**Noice Log**
No errors are printed.

**Minimal configuration**
<details>
<summary>Config</summary>
<pre>

```lua
vim.cmd([[set runtimepath=$VIMRUNTIME]])
vim.cmd([[set packpath=/tmp/nvim/site]])
local package_root = '/tmp/nvim/site/pack'
local install_path = package_root .. '/packer/start/packer.nvim'
local function load_plugins()
  require('packer').startup({
    {
      { 'wbthomason/packer.nvim' },
      { 'rebelot/kanagawa.nvim' },
      { 'nvim-treesitter/nvim-treesitter', run = ':TSUpdate' },
      {
        'folke/noice.nvim',
        requires = { 'MunifTanjim/nui.nvim' },
        --  commit = '0fe5a1ea053ee086327eab386594c5f2e7f15e77', -- <-- previous commit works
      },
      { 'nvim-lualine/lualine.nvim' },
    },
    config = {
      package_root = package_root,
      compile_path = install_path .. '/plugin/packer_compiled.lua',
      display = { non_interactive = true },
    },
  })
end
_G.load_config = function()
  vim.opt.termguicolors = true
  vim.cmd([[colorscheme kanagawa]])
  require('nvim-treesitter.configs').setup({})
  require('noice').setup({
    routes = {
      {
        view = 'mini',
        filter = { event = 'msg_showmode' },
      },
    },
  })
  require('lualine').setup({
    sections = {
      lualine_x = {
        {
          require('noice').api.statusline.mode.get,
          cond = require('noice').api.statusline.mode.has,
          color = { fg = '#ff9e64' },
        },
      },
    },
  })
end
if vim.fn.isdirectory(install_path) == 0 then
  print('Installing dependencies.')
  vim.fn.system({
    'git',
    'clone',
    '--depth=1',
    'https://github.com/wbthomason/packer.nvim',
    install_path,
  })
end
load_plugins()
require('packer').sync()
vim.cmd([[autocmd User PackerComplete ++once lua print('Ready'); load_config()]])

folke commented 1 year ago

Fixed. Thank you for reporting!

lostl1ght commented 1 year ago

I can confirm that the bug is fixed. Thank you!

Thanatermesis commented 11 months ago

I'm having actually this issue

Looking at the commit that fixed it, I have this setting: messages -> view_history -> "messages", but I even commenting all the settings, when I press "qa" doesn't shows any message about the recording started