Lualine, Noice, and Macro Recording #1653
-
With lualine and noice enabled in their default states, you can no longer see when you are recording a new macro with There's a section of the Noice docs that discusses how to add back this functionality via either lualine or a notify message: Would anyone know how to translate these solutions to a Nixvim configuration? Edit: I got the notify solution working by doing the following: programs.nixvim = {
enable = true;
# ...
opts.showmode = false;
plugins.noice = {
enable = true;
routes = [
{
view = "notify";
filter = { event = "msg_showmode"; };
}
];
};
}; The I'd still rather use the lualine solution, as I'd like some indicator to stay on screen as long as I'm recording a macro, not just a notification when I start a recording. So if anyone knows how to do that with NixVim, please let me know! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is made more complex because we haven't migrated lualine to use rfc42 style plugins.lualine.settings = {
sections = {
lualine_x = [
{
"__unkeyed.1".__raw = "require('noice').api.statusline.mode.get";
cond.__raw = "require('noice').api.statusline.mode.has";
color = { fg = "#ff9e64"; };
}
];
};
}; Because we don't (yet) have the plugin setup that way, you'll have to use the plugins.lualine.sections.lualine_x option instead, which is a list of I think something like this would work with our current implementation: plugins.lualine.sections.lualine_x = [
{
name.__raw = "require('noice').api.statusline.mode.get";
color = { fg = "#ff9e64"; };
extraConfig.cond.__raw = "require('noice').api.statusline.mode.has";
}
]; |
Beta Was this translation helpful? Give feedback.
This is made more complex because we haven't migrated lualine to use rfc42 style
settings
options. If it supported that, you could translate the lua config you linked as follows:Because …