add noice

This commit is contained in:
Aditya 2024-03-06 19:01:17 +05:30
parent 98f033921a
commit 1635041641
Signed by: aditya
SSH key fingerprint: SHA256:jL1IvWsjjlPtw6HvDIHfXfhO9IkIokNEyIfuFhSdoyU
2 changed files with 37 additions and 0 deletions

View file

@ -48,6 +48,7 @@
./ui/alpha.nix ./ui/alpha.nix
./ui/dressing-nvim.nix ./ui/dressing-nvim.nix
./ui/indent-blankline.nix ./ui/indent-blankline.nix
./ui/noice.nix
./ui/nvim-notify.nix ./ui/nvim-notify.nix
]; ];
} }

36
config/ui/noice.nix Normal file
View file

@ -0,0 +1,36 @@
{
plugins.noice = {
enable = true;
notify = {
enabled = false;
};
messages = {
enabled = true; # Adds a padding-bottom to neovim statusline when set to false for some reason
};
lsp = {
message = {
enabled = true;
};
progress = {
enabled = false;
view = "mini";
};
};
popupmenu = {
enabled = true;
backend = "nui";
};
format = {
filter = {
pattern = [":%s*%%s*s:%s*" ":%s*%%s*s!%s*" ":%s*%%s*s/%s*" "%s*s:%s*" ":%s*s!%s*" ":%s*s/%s*"];
icon = "";
lang = "regex";
};
replace = {
pattern = [":%s*%%s*s:%w*:%s*" ":%s*%%s*s!%w*!%s*" ":%s*%%s*s/%w*/%s*" "%s*s:%w*:%s*" ":%s*s!%w*!%s*" ":%s*s/%w*/%s*"];
icon = "󱞪";
lang = "regex";
};
};
};
}