Zalgorithm

What is Noice?

Noice (Nice, Noise, Notice). “Highly experimental (Neovim) plugin that completely replaces the UI for messages, cmdline and the popupmenu.

Github repo: https://github.com/folke/noice.nvim?tab=readme-ov-file.

NoiceFzf LazyVim error

The motivation for this note is the following error message: module 'fzf-lua' not found. Full message:


   Error  09:27:05 AM msg_show.lua_error   NoiceFzf Error executing Lua callback: ...local/share/nvim/lazy/noice.nvim/lua/noice/util/lazy.lua:6: module 'fzf-lua' not found:
 no field package.preload['fzf-lua']
 cache_loader: module 'fzf-lua' not found
 cache_loader_lib: module 'fzf-lua' not found
 no file './fzf-lua.lua'
 no file '/usr/share/luajit-2.1/fzf-lua.lua'
 no file '/usr/local/share/lua/5.1/fzf-lua.lua'
 no file '/usr/local/share/lua/5.1/fzf-lua/init.lua'
 no file '/usr/share/lua/5.1/fzf-lua.lua'
 no file '/usr/share/lua/5.1/fzf-lua/init.lua'
 no file './fzf-lua.so'
 no file '/usr/local/lib/lua/5.1/fzf-lua.so'
 no file '/usr/lib/lua/5.1/fzf-lua.so'
 no file '/usr/local/lib/lua/5.1/loadall.so'
 no file '/home/scossar/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/libfzf-lua.so'
 no file '/home/scossar/.local/share/nvim/lazy/blink.cmp/lua/blink/cmp/fuzzy/rust/../../../../../target/release/fzf-lua.so'
stack traceback:
 [C]: in function 'require'
 ...local/share/nvim/lazy/noice.nvim/lua/noice/util/lazy.lua:6: in function 'load'
 ...local/share/nvim/lazy/noice.nvim/lua/noice/util/lazy.lua:16: in function '__index'
 ...hare/nvim/lazy/noice.nvim/lua/noice/integrations/fzf.lua:25: in function 'entry'
 ...hare/nvim/lazy/noice.nvim/lua/noice/integrations/fzf.lua:44: in function 'find'
 ...hare/nvim/lazy/noice.nvim/lua/noice/integrations/fzf.lua:87: in function 'open'
 ....local/share/nvim/lazy/noice.nvim/lua/noice/commands.lua:62: in function <....local/share/nvim/lazy/noice.nvim/lua/noice/commands.lua:61>
 ....local/share/nvim/lazy/noice.nvim/lua/noice/commands.lua:35: in function 'cmd'
 ....local/share/nvim/lazy/noice.nvim/lua/noice/commands.lua:122: in function <....local/share/nvim/lazy/noice.nvim/lua/noice/commands.lua:121>

The fix was to actually install fzf-lua from :LazyExtras. (I thought that fzf-lua was already installed and that it was the file picker that was opened with the <leader>ff command? Possibly I had things configured to use Telescope as the picker?)

Viewing notices in the file picker

To see a list of previous messages in the fzf-lua list, run the command :NoiceFzf.

Note that the same action can be accomplished with the command :Noice fzf, or :Noice pick (to view the messages in the default picker).

Tags: