Skip to content

Commit

Permalink
noice: fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Ludovico Piero <[email protected]>
  • Loading branch information
LudovicoPiero committed Oct 29, 2024
1 parent f9c5148 commit 18b1442
Showing 1 changed file with 65 additions and 63 deletions.
128 changes: 65 additions & 63 deletions config/plugins/ui/noice.nix
Original file line number Diff line number Diff line change
@@ -1,75 +1,77 @@
{
plugins.noice = {
enable = true;
lsp.override = {
"vim.lsp.util.convert_input_to_markdown_lines" = true;
"vim.lsp.util.stylize_markdown" = true;
"cmp.entry.get_documentation" = true;
};
views = {
mini = {
win_options.winblend = 0;
};
cmdline_popup = {
position = {
row = 13;
col = "50%";
};
size = {
min_width = 60;
width = "auto";
height = "auto";
};
settings = {
lsp.override = {
"vim.lsp.util.convert_input_to_markdown_lines" = true;
"vim.lsp.util.stylize_markdown" = true;
"cmp.entry.get_documentation" = true;
};
cmdline_popupmenu = {
relative = "editor";
position = {
row = 16;
col = "50%";
views = {
mini = {
win_options.winblend = 0;
};
size = {
width = 60;
height = "auto";
max_height = 15;
};
border = {
style = "rounded";
padding = [
0
1
];
cmdline_popup = {
position = {
row = 13;
col = "50%";
};
size = {
min_width = 60;
width = "auto";
height = "auto";
};
};
win_options = {
winhighlight = {
Normal = "Normal";
FloatBorder = "NoiceCmdlinePopupBorder";
cmdline_popupmenu = {
relative = "editor";
position = {
row = 16;
col = "50%";
};
size = {
width = 60;
height = "auto";
max_height = 15;
};
border = {
style = "rounded";
padding = [
0
1
];
};
win_options = {
winhighlight = {
Normal = "Normal";
FloatBorder = "NoiceCmdlinePopupBorder";
};
};
};
};
};
routes = [
# Hide unnecessary messages
{
filter = {
event = "msg_show";
any = [
{ find = "%d+L, %d+B"; }
{ find = "; after #%d+"; }
{ find = "; before #%d+"; }
{ find = "%d fewer lines"; }
{ find = "%d more lines"; }
];
};
opts = {
skip = true;
};
}
];
presets = {
bottom_search = true;
command_palette = true;
long_message_to_split = true;
inc_rename = true;
routes = [
# Hide unnecessary messages
{
filter = {
event = "msg_show";
any = [
{ find = "%d+L, %d+B"; }
{ find = "; after #%d+"; }
{ find = "; before #%d+"; }
{ find = "%d fewer lines"; }
{ find = "%d more lines"; }
];
};
opts = {
skip = true;
};
}
];
presets = {
bottom_search = true;
command_palette = true;
long_message_to_split = true;
inc_rename = true;
};
};
};
}

0 comments on commit 18b1442

Please sign in to comment.